pwm: add HAS_IOMEM dependency to PWM_FSL_FTM
authorVegard Nossum <vegard.nossum@oracle.com>
Sat, 2 Jan 2016 13:02:07 +0000 (14:02 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 4 Jan 2016 07:55:03 +0000 (08:55 +0100)
Ran into this on UML:

drivers/built-in.o: In function `fsl_pwm_probe':
linux/drivers/pwm/pwm-fsl-ftm.c:436: undefined reference to `devm_ioremap_resource'
collect2: error: ld returned 1 exit status

devm_ioremap_resource() is defined only when HAS_IOMEM is selected.

Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
Cc: Xiubo Li <Li.Xiubo@freescale.com>
Cc: Alison Wang <b18965@freescale.com>
Cc: Jingchang Lu <b35083@freescale.com>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Yuan Yao <yao.yuan@freescale.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/Kconfig

index 3513ff8..8cf0dae 100644 (file)
@@ -148,6 +148,7 @@ config PWM_EP93XX
 
 config PWM_FSL_FTM
        tristate "Freescale FlexTimer Module (FTM) PWM support"
+       depends on HAS_IOMEM
        depends on OF
        select REGMAP_MMIO
        help