]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: UCB1x00: Enable modular build
authorArnd Bergmann <arnd@arndb.de>
Thu, 5 Jun 2014 21:24:12 +0000 (23:24 +0200)
committerLee Jones <lee.jones@linaro.org>
Thu, 26 Jun 2014 12:33:34 +0000 (13:33 +0100)
commit23cff15ead538c7d30d77238f8da9ecf56eae472
treeab52d4d31348af2c032ba6611b6201975825b527
parentdad65f214dcb12470d80fac0c10a00cc171b7834
mfd: UCB1x00: Enable modular build

The UCB1200 / UCB1300 driver uses the MCP_SA11X0 driver, which
can be a loadable module, but this results in a link error
when UCB1200 itself is built-in:

drivers/built-in.o: In function `ucb1x00_io_set_dir':
:(.text+0x4a364): undefined reference to `mcp_reg_write'
drivers/built-in.o: In function `ucb1x00_io_write':
:(.text+0x4a3dc): undefined reference to `mcp_reg_write'
drivers/built-in.o: In function `ucb1x00_io_read':
:(.text+0x4a400): undefined reference to `mcp_reg_read'
drivers/built-in.o: In function `ucb1x00_adc_enable':
:(.text+0x4a460): undefined reference to `mcp_enable'
...

This can easily be resolved by making CONFIG_MCP_UCB1200 itself
a tristate option, since that causes Kconfig to track the
dependency correctly.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/Kconfig