[PATCH] iio:adc:stm32-adc: Add HAS_IOMEM dependency

Subsystems: iio subsystem and drivers, the rest

STALE1998d LANDED

Landed in mainline as 121875b28e3b on 2021-02-21.

2 messages, 2 authors, 2021-02-21 · open the first message on its own page

[PATCH] iio:adc:stm32-adc: Add HAS_IOMEM dependency

From: Jonathan Cameron <jic23@kernel.org>
Date: 2021-01-24 19:53:47

From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

Seems that there are config combinations in which this driver gets enabled
and hence selects the MFD, but with out HAS_IOMEM getting pulled in
via some other route.  MFD is entirely contained in an
if HAS_IOMEM block, leading to the build issue in this bugzilla.

https://bugzilla.kernel.org/show_bug.cgi?id=209889

Cc: <redacted>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
---
 drivers/iio/adc/Kconfig | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
index bf7d22fa4be2..6605c263949c 100644
--- a/drivers/iio/adc/Kconfig
+++ b/drivers/iio/adc/Kconfig
@@ -923,6 +923,7 @@ config STM32_ADC_CORE
 	depends on ARCH_STM32 || COMPILE_TEST
 	depends on OF
 	depends on REGULATOR
+	depends on HAS_IOMEM
 	select IIO_BUFFER
 	select MFD_STM32_TIMERS
 	select IIO_STM32_TIMER_TRIGGER
-- 
2.30.0

Re: [PATCH] iio:adc:stm32-adc: Add HAS_IOMEM dependency

From: Jonathan Cameron <hidden>
Date: 2021-02-21 16:12:36

On Sun, 24 Jan 2021 19:50:34 +0000
Jonathan Cameron [off-list ref] wrote:
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

Seems that there are config combinations in which this driver gets enabled
and hence selects the MFD, but with out HAS_IOMEM getting pulled in
via some other route.  MFD is entirely contained in an
if HAS_IOMEM block, leading to the build issue in this bugzilla.

https://bugzilla.kernel.org/show_bug.cgi?id=209889

Cc: <redacted>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Applied to the fixes-togreg branch of iio.git.

Thanks

Jonathan
quoted hunk
---
 drivers/iio/adc/Kconfig | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
index bf7d22fa4be2..6605c263949c 100644
--- a/drivers/iio/adc/Kconfig
+++ b/drivers/iio/adc/Kconfig
@@ -923,6 +923,7 @@ config STM32_ADC_CORE
 	depends on ARCH_STM32 || COMPILE_TEST
 	depends on OF
 	depends on REGULATOR
+	depends on HAS_IOMEM
 	select IIO_BUFFER
 	select MFD_STM32_TIMERS
 	select IIO_STM32_TIMER_TRIGGER

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help