pwm: Add can_sleep property to drivers
authorFlorian Vaussard <florian.vaussard@epfl.ch>
Mon, 28 Jan 2013 14:00:58 +0000 (15:00 +0100)
committerThierry Reding <thierry.reding@avionic-design.de>
Wed, 30 Jan 2013 08:12:51 +0000 (09:12 +0100)
Calls to PWM drivers connected through I2C can sleep.
Use the new can_sleep property.

Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Florian Vaussard <florian.vaussard@epfl.ch>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
drivers/pwm/pwm-twl-led.c
drivers/pwm/pwm-twl.c

index 9dfa0f3eca3032917bc48066e9edf6e3b218eecb..83e25d45d640adde070f4fa43526506d2a29334d 100644 (file)
@@ -300,6 +300,7 @@ static int twl_pwmled_probe(struct platform_device *pdev)
 
        twl->chip.dev = &pdev->dev;
        twl->chip.base = -1;
+       twl->chip.can_sleep = true;
 
        mutex_init(&twl->mutex);
 
index e65db95d5e59c470f29fc6c1b86b1eda9441ca44..f783efcd14bbffa129f24b18708f8baff80b65a8 100644 (file)
@@ -315,6 +315,7 @@ static int twl_pwm_probe(struct platform_device *pdev)
        twl->chip.dev = &pdev->dev;
        twl->chip.base = -1;
        twl->chip.npwm = 2;
+       twl->chip.can_sleep = true;
 
        mutex_init(&twl->mutex);