aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2014-04-09 14:26:09 -0400
committerThierry Reding <thierry.reding@gmail.com>2014-05-21 06:08:57 -0400
commitcf3a384b3484200f45d185b2e3c7b71fd4511ea7 (patch)
tree67cf0675deb027ca935f326c8e54a61252b59e6b
parentbd9c1b60050e2b7ef6507d8eaa5279afc043e06e (diff)
pwm: atmel: set pwm_chip can_sleep flag
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>
-rw-r--r--drivers/pwm/pwm-atmel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-atmel.c b/drivers/pwm/pwm-atmel.c
index 0adc952cc4ef..6e700a541ca3 100644
--- a/drivers/pwm/pwm-atmel.c
+++ b/drivers/pwm/pwm-atmel.c
@@ -357,6 +357,7 @@ static int atmel_pwm_probe(struct platform_device *pdev)
357 357
358 atmel_pwm->chip.base = -1; 358 atmel_pwm->chip.base = -1;
359 atmel_pwm->chip.npwm = 4; 359 atmel_pwm->chip.npwm = 4;
360 atmel_pwm->chip.can_sleep = true;
360 atmel_pwm->config = data->config; 361 atmel_pwm->config = data->config;
361 362
362 ret = pwmchip_add(&atmel_pwm->chip); 363 ret = pwmchip_add(&atmel_pwm->chip);