diff mbox series

iio: Fix an undefied reference error in noa1305_probe

Message ID 1569204272-20365-1-git-send-email-zhongjiang@huawei.com (mailing list archive)
State New, archived
Headers show
Series iio: Fix an undefied reference error in noa1305_probe | expand

Commit Message

zhong jiang Sept. 23, 2019, 2:04 a.m. UTC
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 <zhongjiang@huawei.com>
---
 drivers/iio/light/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Jonathan Cameron Oct. 5, 2019, 4:41 p.m. UTC | #1
On Mon, 23 Sep 2019 10:04:32 +0800
zhong jiang <zhongjiang@huawei.com> wrote:

> 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 <zhongjiang@huawei.com>
Applied to the fixes-togreg branch of iio.git and marked for stable.

Thanks,

Jonathan

> ---
>  drivers/iio/light/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/iio/light/Kconfig b/drivers/iio/light/Kconfig
> index 08d7e1e..4a1a883 100644
> --- a/drivers/iio/light/Kconfig
> +++ b/drivers/iio/light/Kconfig
> @@ -314,6 +314,7 @@ config MAX44009
>  config NOA1305
>  	tristate "ON Semiconductor NOA1305 ambient light sensor"
>  	depends on I2C
> +	select REGMAP_I2C
>  	help
>  	 Say Y here if you want to build support for the ON Semiconductor
>  	 NOA1305 ambient light sensor.
diff mbox series

Patch

diff --git a/drivers/iio/light/Kconfig b/drivers/iio/light/Kconfig
index 08d7e1e..4a1a883 100644
--- a/drivers/iio/light/Kconfig
+++ b/drivers/iio/light/Kconfig
@@ -314,6 +314,7 @@  config MAX44009
 config NOA1305
 	tristate "ON Semiconductor NOA1305 ambient light sensor"
 	depends on I2C
+	select REGMAP_I2C
 	help
 	 Say Y here if you want to build support for the ON Semiconductor
 	 NOA1305 ambient light sensor.