From: Randy Dunlap <[email protected]>

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 <[email protected]>
Signed-off-by: Randy Dunlap <[email protected]>
Cc: Kjeld Flarup <[email protected]>
Cc: Patrick Havelange <[email protected]>
Cc: William Breathitt Gray <[email protected]>
Cc: [email protected]
---
BTW, please fix these lines to have ending '>' characters:
MODULE_AUTHOR("Kjeld Flarup <[email protected]");
MODULE_AUTHOR("Patrick Havelange <[email protected]");

 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.


Reply via email to