summaryrefslogtreecommitdiffstats
path: root/drivers/pwm
diff options
context:
space:
mode:
authorVegard Nossum <vegard.nossum@oracle.com>2016-01-02 14:02:07 +0100
committerThierry Reding <thierry.reding@gmail.com>2016-01-04 08:55:03 +0100
commit36d5be4bc9059f8123e818c8b63a4049cf1d0e0f (patch)
tree73ad8795bae6b14f8bcb0491c0a28fd9e9bda9d2 /drivers/pwm
parentpwm: Add PWM driver for OMAP using dual-mode timers (diff)
downloadlinux-36d5be4bc9059f8123e818c8b63a4049cf1d0e0f.tar.xz
linux-36d5be4bc9059f8123e818c8b63a4049cf1d0e0f.zip
pwm: add HAS_IOMEM dependency to PWM_FSL_FTM
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>
Diffstat (limited to 'drivers/pwm')
-rw-r--r--drivers/pwm/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
index 3513ff833305..8cf0dae78555 100644
--- a/drivers/pwm/Kconfig
+++ b/drivers/pwm/Kconfig
@@ -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