From 2e2a0f6ed1637e8cc4c33850bdf51a418d516157 Mon Sep 17 00:00:00 2001 From: Florian Vaussard Date: Mon, 28 Jan 2013 15:00:58 +0100 Subject: pwm: Add can_sleep property to drivers Calls to PWM drivers connected through I2C can sleep. Use the new can_sleep property. Acked-by: Peter Ujfalusi Signed-off-by: Florian Vaussard Signed-off-by: Thierry Reding --- drivers/pwm/pwm-twl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/pwm/pwm-twl.c') diff --git a/drivers/pwm/pwm-twl.c b/drivers/pwm/pwm-twl.c index e65db95d5e59..f783efcd14bb 100644 --- a/drivers/pwm/pwm-twl.c +++ b/drivers/pwm/pwm-twl.c @@ -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); -- cgit v1.2.3