Skip to content

Commit a26e0fb

Browse files
xiongzhongjiangjic23
authored andcommitted
iio: Fix an undefied reference error in noa1305_probe
I hit the following error when compile the kernel. drivers/iio/light/noa1305.o: In function `noa1305_probe': noa1305.c:(.text+0x65): undefined reference to `__devm_regmap_init_i2c' make: *** [vmlinux] Error 1 Signed-off-by: zhong jiang <[email protected]> Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 82f3015 commit a26e0fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/iio/light/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ config MAX44009
314314
config NOA1305
315315
tristate "ON Semiconductor NOA1305 ambient light sensor"
316316
depends on I2C
317+
select REGMAP_I2C
317318
help
318319
Say Y here if you want to build support for the ON Semiconductor
319320
NOA1305 ambient light sensor.

0 commit comments

Comments
 (0)