From: Vegard Nossum Date: Sat, 2 Jan 2016 13:02:07 +0000 (+0100) Subject: pwm: add HAS_IOMEM dependency to PWM_FSL_FTM X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=36d5be4bc9059f8123e818c8b63a4049cf1d0e0f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Cc: Xiubo Li Cc: Alison Wang Cc: Jingchang Lu Cc: Sascha Hauer Cc: Yuan Yao Cc: Thierry Reding Signed-off-by: Thierry Reding --- 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