diff options
author | Arnd Bergmann <arnd@arndb.de> | 2014-06-05 17:24:12 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-06-26 08:33:34 -0400 |
commit | 1c93c725d61642511f02a3293bcd7e694d0397d2 (patch) | |
tree | ab52d4d31348af2c032ba6611b6201975825b527 /drivers/mfd/Kconfig | |
parent | a497c3ba1d97fc69c1e78e7b96435ba8c2cb42ee (diff) |
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>
Diffstat (limited to 'drivers/mfd/Kconfig')
-rw-r--r-- | drivers/mfd/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index ee8204cc31e9..43706928ef86 100644 --- a/drivers/mfd/Kconfig +++ b/drivers/mfd/Kconfig | |||
@@ -1248,7 +1248,7 @@ config MCP_SA11X0 | |||
1248 | 1248 | ||
1249 | # Chip drivers | 1249 | # Chip drivers |
1250 | config MCP_UCB1200 | 1250 | config MCP_UCB1200 |
1251 | bool "Support for UCB1200 / UCB1300" | 1251 | tristate "Support for UCB1200 / UCB1300" |
1252 | depends on MCP_SA11X0 | 1252 | depends on MCP_SA11X0 |
1253 | select MCP | 1253 | select MCP |
1254 | 1254 | ||