* [PATCH] iio: Fix an undefied reference error in noa1305_probe
@ 2019-09-23 2:04 zhong jiang
2019-10-05 16:41 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: zhong jiang @ 2019-09-23 2:04 UTC (permalink / raw)
To: jic23, knaack.h; +Cc: lars, pmeerw, zhongjiang, linux-iio, linux-kernel
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(+)
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.
--
1.7.12.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iio: Fix an undefied reference error in noa1305_probe
2019-09-23 2:04 [PATCH] iio: Fix an undefied reference error in noa1305_probe zhong jiang
@ 2019-10-05 16:41 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2019-10-05 16:41 UTC (permalink / raw)
To: zhong jiang; +Cc: knaack.h, lars, pmeerw, linux-iio, linux-kernel
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-05 16:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-23 2:04 [PATCH] iio: Fix an undefied reference error in noa1305_probe zhong jiang
2019-10-05 16:41 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).