[PATCH] counter: fix ftm-quaddec build error on UML
From: Randy Dunlap
Date: Mon Jun 17 2019 - 12:26:53 EST
From: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Fix build error on user-mode Linux, which does not set HAS_IOMEM,
so devm_ioremap() is not available. Fixes this build error:
ERROR: "devm_ioremap" [drivers/counter/ftm-quaddec.ko] undefined!
Fixes: a3b9a99980d9 ("counter: add FlexTimer Module Quadrature decoder counter driver")
Reported-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Cc: Kjeld Flarup <kfa@xxxxxxxx>
Cc: Patrick Havelange <patrick.havelange@xxxxxxxxxxxxx>
Cc: William Breathitt Gray <vilhelm.gray@xxxxxxxxx>
Cc: linux-iio@xxxxxxxxxxxxxxx
---
BTW, please fix these lines to have ending '>' characters:
MODULE_AUTHOR("Kjeld Flarup <kfa@xxxxxxxx");
MODULE_AUTHOR("Patrick Havelange <patrick.havelange@xxxxxxxxxxxxx");
drivers/counter/Kconfig | 1 +
1 file changed, 1 insertion(+)
--- lnx-52-rc5.orig/drivers/counter/Kconfig
+++ lnx-52-rc5/drivers/counter/Kconfig
@@ -51,6 +51,7 @@ config STM32_LPTIMER_CNT
config FTM_QUADDEC
tristate "Flex Timer Module Quadrature decoder driver"
+ depends on HAS_IOMEM
help
Select this option to enable the Flex Timer Quadrature decoder
driver.