Răsfoiți Sursa

Merge branch 'for-linus' of git://git.o-hand.com/linux-mfd

* 'for-linus' of git://git.o-hand.com/linux-mfd:
  mfd: Fix asic3 compilation
  mfd: Fix Kconfig accroding to the new gpiolib symbols
Linus Torvalds 17 ani în urmă
părinte
comite
022d5bcd49
2 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 2 2
      drivers/mfd/Kconfig
  2. 1 1
      drivers/mfd/asic3.c

+ 2 - 2
drivers/mfd/Kconfig

@@ -21,7 +21,7 @@ config MFD_SM501
 
 
 config MFD_SM501_GPIO
 config MFD_SM501_GPIO
 	bool "Export GPIO via GPIO layer"
 	bool "Export GPIO via GPIO layer"
-	depends on MFD_SM501 && HAVE_GPIO_LIB
+	depends on MFD_SM501 && GPIOLIB
 	 ---help---
 	 ---help---
 	 This option uses the gpio library layer to export the 64 GPIO
 	 This option uses the gpio library layer to export the 64 GPIO
 	 lines on the SM501. The platform data is used to supply the
 	 lines on the SM501. The platform data is used to supply the
@@ -29,7 +29,7 @@ config MFD_SM501_GPIO
 
 
 config MFD_ASIC3
 config MFD_ASIC3
 	bool "Support for Compaq ASIC3"
 	bool "Support for Compaq ASIC3"
-	depends on GENERIC_HARDIRQS && HAVE_GPIO_LIB && ARM
+	depends on GENERIC_HARDIRQS && GPIOLIB && ARM
 	 ---help---
 	 ---help---
 	  This driver supports the ASIC3 multifunction chip found on many
 	  This driver supports the ASIC3 multifunction chip found on many
 	  PDAs (mainly iPAQ and HTC based ones)
 	  PDAs (mainly iPAQ and HTC based ones)

+ 1 - 1
drivers/mfd/asic3.c

@@ -312,7 +312,6 @@ static int __init asic3_irq_probe(struct platform_device *pdev)
 	struct asic3 *asic = platform_get_drvdata(pdev);
 	struct asic3 *asic = platform_get_drvdata(pdev);
 	unsigned long clksel = 0;
 	unsigned long clksel = 0;
 	unsigned int irq, irq_base;
 	unsigned int irq, irq_base;
-	int map_size;
 	int ret;
 	int ret;
 
 
 	ret = platform_get_irq(pdev, 0);
 	ret = platform_get_irq(pdev, 0);
@@ -534,6 +533,7 @@ static int __init asic3_probe(struct platform_device *pdev)
 	struct asic3 *asic;
 	struct asic3 *asic;
 	struct resource *mem;
 	struct resource *mem;
 	unsigned long clksel;
 	unsigned long clksel;
+	int map_size;
 	int ret = 0;
 	int ret = 0;
 
 
 	asic = kzalloc(sizeof(struct asic3), GFP_KERNEL);
 	asic = kzalloc(sizeof(struct asic3), GFP_KERNEL);