counter/ftm-quaddec: Add missing dependencies in Kconfig
authorPatrick Havelange <patrick.havelange@essensium.com>
Tue, 4 Jun 2019 14:03:26 +0000 (16:03 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 8 Jun 2019 12:07:41 +0000 (13:07 +0100)
This driver uses devm_ioremap and of* functions. This fixes a
linking failure with e.g. ARCH=um.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Patrick Havelange <patrick.havelange@essensium.com>
Fixes: a3b9a99 ("counter: add FlexTimer Module Quadrature decoder counter driver")
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/counter/Kconfig

index 233ac305d87845db3fb5f8840ee64ef1bb5a708f..c9e3f5c98484477a8494f7afea46dedb0e0b1613 100644 (file)
@@ -50,6 +50,7 @@ config STM32_LPTIMER_CNT
 
 config FTM_QUADDEC
        tristate "Flex Timer Module Quadrature decoder driver"
+       depends on HAS_IOMEM && OF
        help
          Select this option to enable the Flex Timer Quadrature decoder
          driver.