mfd: wm8350-i2c: Make sure the i2c regmap functions are compiled
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 29 Jul 2016 19:29:15 +0000 (21:29 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 4 Oct 2016 14:48:01 +0000 (15:48 +0100)
This fixes a compile failure:

drivers/built-in.o: In function `wm8350_i2c_probe':
core.c:(.text+0x828b0): undefined reference to `__devm_regmap_init_i2c'
Makefile:953: recipe for target 'vmlinux' failed

Fixes: 52b461b86a9f ("mfd: Add regmap cache support for wm8350")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/Kconfig

index 69b6fe2b982e19bf5535ecb4f458e42d0aba38f2..362aa1a172f621f10d932b9b93438e8e9149ae2d 100644 (file)
@@ -1573,6 +1573,7 @@ config MFD_WM8350
 config MFD_WM8350_I2C
        bool "Wolfson Microelectronics WM8350 with I2C"
        select MFD_WM8350
+       select REGMAP_I2C
        depends on I2C=y
        help
          The WM8350 is an integrated audio and power management