summaryrefslogtreecommitdiffstats
path: root/drivers/of/Kconfig
diff options
context:
space:
mode:
authorJochen Friedrich <jochen@scram.de>2008-04-18 16:23:03 +0200
committerPaul Mackerras <paulus@samba.org>2008-04-20 05:03:35 +0200
commit585468e5d5962660867c269e26f0a4b89a599473 (patch)
tree0d134c3d7e7fb80e2f36c342983b9e224e325fca /drivers/of/Kconfig
parent[POWERPC] Optimize fls64() on 64-bit processors (diff)
downloadlinux-585468e5d5962660867c269e26f0a4b89a599473.tar.xz
linux-585468e5d5962660867c269e26f0a4b89a599473.zip
[POWERPC] i2c: Fix build breakage introduced by OF helpers
Fix build breakage introduced in commit "[POWERPC] i2c: OF helpers for the i2c API". If i2c-core is compiled as a module, the helper needs to be compiled as a module, as well. Rename i2c.c to of_i2c.c to avoid name space conflict. [paulus@samba.org: Changed dependency from OF to PPC_OF to avoid sparc{32,64} allmodconfig breakage.] Signed-off-by: Jochen Friedrich <jochen@scram.de> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/of/Kconfig')
-rw-r--r--drivers/of/Kconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig
index 7c305317f372..3a7a11a75fb4 100644
--- a/drivers/of/Kconfig
+++ b/drivers/of/Kconfig
@@ -9,7 +9,7 @@ config OF_GPIO
OpenFirmware GPIO accessors
config OF_I2C
- def_bool y
- depends on OF && I2C
+ def_tristate I2C
+ depends on PPC_OF && I2C
help
OpenFirmware I2C accessors