Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: simple-mfd-i2c: Select MFD_CORE to fix build error

MFD_SIMPLE_MFD_I2C should select the MFD_CORE to a prevent build error:

aarch64-linux-ld: drivers/mfd/simple-mfd-i2c.o: in function `simple_mfd_i2c_probe':
drivers/mfd/simple-mfd-i2c.c:55: undefined reference to `devm_mfd_add_devices'

Cc: <stable@vger.kernel.org>
Fixes: c753ea31781aa ("mfd: simple-mfd-i2c: Add support for registering devices via MFD cells")
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20211102100420.112215-1-robert.marko@sartura.hr

authored by

Robert Marko and committed by
Lee Jones
5dc6dafe b20cd02f

+1
+1
drivers/mfd/Kconfig
··· 1196 1196 config MFD_SIMPLE_MFD_I2C 1197 1197 tristate 1198 1198 depends on I2C 1199 + select MFD_CORE 1199 1200 select REGMAP_I2C 1200 1201 help 1201 1202 This driver creates a single register map with the intention for it