projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54b0234
)
pwm: fsl-ftm: set pwm_chip can_sleep flag
author
Axel Lin
<axel.lin@ingics.com>
Thu, 22 May 2014 00:05:20 +0000
(08:05 +0800)
committer
Thierry Reding
<thierry.reding@gmail.com>
Fri, 23 May 2014 07:11:21 +0000
(09:11 +0200)
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>
drivers/pwm/pwm-fsl-ftm.c
patch
|
blob
|
history
diff --git
a/drivers/pwm/pwm-fsl-ftm.c
b/drivers/pwm/pwm-fsl-ftm.c
index
420169e
..
a18bc8f
100644
(file)
--- 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) {