2014-07-13 11:44:50

by Chen Gang

[permalink] [raw]
Subject: [PATCH] drivers/staging/iio/adc/Kconfig: Let MXS_LRADC depend on HAS_IOMEM

MXS_LRADC need HAS_IOMEM, so let it depend on HAS_IOMEM

The related error (with allmodconfig under score):

MODPOST 1365 modules
ERROR: "devm_ioremap_resource" [drivers/staging/iio/adc/mxs-lradc.ko] undefined!


Signed-off-by: Chen Gang <[email protected]>
---
drivers/staging/iio/adc/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/iio/adc/Kconfig b/drivers/staging/iio/adc/Kconfig
index b87e382..4e927d2 100644
--- a/drivers/staging/iio/adc/Kconfig
+++ b/drivers/staging/iio/adc/Kconfig
@@ -94,7 +94,7 @@ config LPC32XX_ADC

config MXS_LRADC
tristate "Freescale i.MX23/i.MX28 LRADC"
- depends on ARCH_MXS || COMPILE_TEST
+ depends on (ARCH_MXS || COMPILE_TEST) && HAS_IOMEM
depends on INPUT
select STMP_DEVICE
select IIO_BUFFER
--
1.7.11.7


2014-07-13 14:03:01

by Marek Vasut

[permalink] [raw]
Subject: Re: [PATCH] drivers/staging/iio/adc/Kconfig: Let MXS_LRADC depend on HAS_IOMEM

On Sunday, July 13, 2014 at 01:44:38 PM, Chen Gang wrote:
> MXS_LRADC need HAS_IOMEM, so let it depend on HAS_IOMEM
>
> The related error (with allmodconfig under score):
>
> MODPOST 1365 modules
> ERROR: "devm_ioremap_resource" [drivers/staging/iio/adc/mxs-lradc.ko]
> undefined!
>
>
> Signed-off-by: Chen Gang <[email protected]>

Acked-by: Marek Vasut <[email protected]>

Best regards,
Marek Vasut

2014-07-13 18:43:02

by Jonathan Cameron

[permalink] [raw]
Subject: Re: [PATCH] drivers/staging/iio/adc/Kconfig: Let MXS_LRADC depend on HAS_IOMEM

On 13/07/14 14:27, Marek Vasut wrote:
> On Sunday, July 13, 2014 at 01:44:38 PM, Chen Gang wrote:
>> MXS_LRADC need HAS_IOMEM, so let it depend on HAS_IOMEM
>>
>> The related error (with allmodconfig under score):
>>
>> MODPOST 1365 modules
>> ERROR: "devm_ioremap_resource" [drivers/staging/iio/adc/mxs-lradc.ko]
>> undefined!
>>
>>
>> Signed-off-by: Chen Gang <[email protected]>
>
> Acked-by: Marek Vasut <[email protected]>
Applied to the togreg branch of iio.git.

Thanks,
>
> Best regards,
> Marek Vasut
>