Patchwork pwm: Kconfig: Select REGMAP_MMIO for PWM_FSL_FTM

login
register
mail settings
Submitter Fabio Estevam
Date Aug. 21, 2014, 11:49 p.m.
Message ID <1408664955-23149-1-git-send-email-festevam@gmail.com>
Download mbox | patch
Permalink /patch/382058/
State Superseded
Headers show

Comments

Fabio Estevam - Aug. 21, 2014, 11:49 p.m.
From: Fabio Estevam <fabio.estevam@freescale.com>

Commit 42fa98a9c3609c1 ("pwm: fsl-ftm: Convert to direct regmap API usage")
introduced the following error when REGMAP_MMIO=n:

drivers/built-in.o: In function `fsl_pwm_probe':
>> pwm-fsl-ftm.c:(.text+0xd7d7): undefined reference to `devm_regmap_init_mmio_clk'

Select select REGMAP_MMIO in order to fix this error.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 drivers/pwm/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
index b800783..e56e91e 100644
--- a/drivers/pwm/Kconfig
+++ b/drivers/pwm/Kconfig
@@ -101,6 +101,7 @@  config PWM_EP93XX
 config PWM_FSL_FTM
 	tristate "Freescale FlexTimer Module (FTM) PWM support"
 	depends on OF
+	select REGMAP_MMIO
 	help
 	  Generic FTM PWM framework driver for Freescale VF610 and
 	  Layerscape LS-1 SoCs.