Skip to content

Commit

Permalink
pwm: atmel: set pwm_chip can_sleep flag
Browse files Browse the repository at this point in the history
atmel_pwm_config() calls clk_get_rate() which might sleep, so we need to
set pwm_chip can_sleep flag.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
  • Loading branch information
Alexandre Belloni authored and Thierry Reding committed May 21, 2014
1 parent bd9c1b6 commit cf3a384
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/pwm/pwm-atmel.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ static int atmel_pwm_probe(struct platform_device *pdev)

atmel_pwm->chip.base = -1;
atmel_pwm->chip.npwm = 4;
atmel_pwm->chip.can_sleep = true;
atmel_pwm->config = data->config;

ret = pwmchip_add(&atmel_pwm->chip);
Expand Down

0 comments on commit cf3a384

Please sign in to comment.