mfd: htc-i2cpld depends on GPIOLIB

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Sunday, March 7, 2010 - 6:03 pm

Gitweb:     http://git.kernel.org/linus/bef3e20c9f8ce5cb8809cf33494d95a78db07857
Commit:     bef3e20c9f8ce5cb8809cf33494d95a78db07857
Parent:     f7ea2dc59ed46dcd0f1cfaccda02211f4507207b
Author:     Randy Dunlap <randy.dunlap@oracle.com>
AuthorDate: Wed Jan 20 19:55:34 2010 -0800
Committer:  Samuel Ortiz <sameo@linux.intel.com>
CommitDate: Sun Mar 7 22:17:12 2010 +0100

    mfd: htc-i2cpld depends on GPIOLIB
    
    htc-i2cpld should depend on GPIOLIB, otherwise there are many
    build errors:
    
    drivers/mfd/htc-i2cpld.c:50: error: field 'chip_out' has incomplete type
    drivers/mfd/htc-i2cpld.c:54: error: field 'chip_in' has incomplete type
    drivers/mfd/htc-i2cpld.c:243: warning: type defaults to 'int' in declaration of '__mptr'
    drivers/mfd/htc-i2cpld.c:243: warning: initialization from incompatible pointer type
    drivers/mfd/htc-i2cpld.c:278: warning: type defaults to 'int' in declaration of '__mptr'
    drivers/mfd/htc-i2cpld.c:278: warning: initialization from incompatible pointer type
    drivers/mfd/htc-i2cpld.c:282: warning: type defaults to 'int' in declaration of '__mptr'
    drivers/mfd/htc-i2cpld.c:282: warning: initialization from incompatible pointer type
    drivers/mfd/htc-i2cpld.c:315: error: dereferencing pointer to incomplete type
    drivers/mfd/htc-i2cpld.c:322: warning: type defaults to 'int' in declaration of '__mptr'
    drivers/mfd/htc-i2cpld.c:322: warning: initialization from incompatible pointer type
    drivers/mfd/htc-i2cpld.c:467+: error: dereferencing pointer to incomplete type [19X]
    drivers/mfd/htc-i2cpld.c:490: error: implicit declaration of function 'gpiochip_add'
    drivers/mfd/htc-i2cpld.c:504: error: implicit declaration of function 'gpiochip_remove'
    
    Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
    Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
---
 drivers/mfd/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index ea2557b..a760dbe 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -80,7 +80,7 @@ config HTC_PASIC3
 
 config HTC_I2CPLD
 	bool "HTC I2C PLD chip support"
-	depends on I2C=y
+	depends on I2C=y && GPIOLIB
 	help
 	  If you say yes here you get support for the supposed CPLD
 	  found on omap850 HTC devices like the HTC Wizard and HTC Herald.
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
mfd: htc-i2cpld depends on GPIOLIB, Linux Kernel Mailing ..., (Sun Mar 7, 6:03 pm)