提交 585468e5 编写于 作者: J Jochen Friedrich 提交者: Paul Mackerras

[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: NJochen Friedrich <jochen@scram.de>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 9f264be6
......@@ -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
obj-y = base.o
obj-$(CONFIG_OF_DEVICE) += device.o platform.o
obj-$(CONFIG_OF_GPIO) += gpio.o
obj-$(CONFIG_OF_I2C) += i2c.o
obj-$(CONFIG_OF_I2C) += of_i2c.o
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册