mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Acked-by: Xiubo Li <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
This commit is contained in:
parent
54b02347d7
commit
39fd3f99ab
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue