summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-fsl-ftm.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-05-22 08:05:20 +0800
committerThierry Reding <thierry.reding@gmail.com>2014-05-23 09:11:21 +0200
commit39fd3f99aba3f7683fc9b62e916e4c886a1cb6b0 (patch)
treea16870320118635806a2964b21c633c15c81a724 /drivers/pwm/pwm-fsl-ftm.c
parent54b02347d71802a010ceace3dd25ed3774ba8a1e (diff)
downloadtalos-obmc-linux-39fd3f99aba3f7683fc9b62e916e4c886a1cb6b0.tar.gz
talos-obmc-linux-39fd3f99aba3f7683fc9b62e916e4c886a1cb6b0.zip
pwm: fsl-ftm: set pwm_chip can_sleep flag
The implementation of .config(), .enable() and .disable() operations in this driver may sleep, thus set pwm_chip can_sleep flag. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Xiubo Li <Li.Xiubo@freescale.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-fsl-ftm.c')
-rw-r--r--drivers/pwm/pwm-fsl-ftm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-fsl-ftm.c b/drivers/pwm/pwm-fsl-ftm.c
index 420169e96b5f..a18bc8fea385 100644
--- a/drivers/pwm/pwm-fsl-ftm.c
+++ b/drivers/pwm/pwm-fsl-ftm.c
@@ -454,6 +454,7 @@ static int fsl_pwm_probe(struct platform_device *pdev)
fpc->chip.of_pwm_n_cells = 3;
fpc->chip.base = -1;
fpc->chip.npwm = 8;
+ fpc->chip.can_sleep = true;
ret = pwmchip_add(&fpc->chip);
if (ret < 0) {
OpenPOWER on IntegriCloud