Skip to content

Commit

Permalink
pwm: fsl-ftm: set pwm_chip can_sleep flag
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
AxelLin authored and thierryreding committed May 23, 2014
1 parent 54b0234 commit 39fd3f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/pwm/pwm-fsl-ftm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 39fd3f9

Please sign in to comment.