Skip to contentSkip to conversation

counter: ftm-quaddec: needs HAS_IOMEM

PATCH In review Thomas Meyer 2 participants 2 messages Jun 1, 2019 – Jun 8, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 counter: ftm-quaddec: needs HAS_IOMEM

the driver fails for UML with:
drivers/counter/ftm-quaddec.c:301: undefined reference to `devm_ioremap'

Fix it by depending on HAS_IOMEM

---
 drivers/counter/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/counter/Kconfig +1 -0
index 138ecd8a8fbd..6298344b536b 100644
@@ -50,6 +50,7 @@ config STM32_LPTIMER_CNT
 	  module will be called stm32-lptimer-cnt.
 
 config FTM_QUADDEC
+	depends on HAS_IOMEM
 	tristate "Flex Timer Module Quadrature decoder driver"
 	help
 	  Select this option to enable the Flex Timer Quadrature decoder
Signature · 1 line
2.21.0
#1 lore raw
Quoted 4 lines · On Sat, 1 Jun 2019 23:38:05 +0200 Thomas Meyer <[email protected]> wrote:

the driver fails for UML with:
drivers/counter/ftm-quaddec.c:301: undefined reference to `devm_ioremap'

Fix it by depending on HAS_IOMEM

Missing Signed-off-by.

Unfortunately I came across another patch for this before yours so already have this fixed in the fixes-togreg branch of iio.git.

Thanks,

Jonathan

Quoted 16 lines
---
 drivers/counter/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/counter/Kconfig +1 -0
index 138ecd8a8fbd..6298344b536b 100644
@@ -50,6 +50,7 @@ config STM32_LPTIMER_CNT
 	  module will be called stm32-lptimer-cnt.
 
 config FTM_QUADDEC
+	depends on HAS_IOMEM
 	tristate "Flex Timer Module Quadrature decoder driver"
 	help
 	  Select this option to enable the Flex Timer Quadrature decoder