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 <peter.ujfalusi@ti.com> Signed-off-by: Florian Vaussard <florian.vaussard@epfl.ch> Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
This commit is contained in:
parent
6e69ab1361
commit
2e2a0f6ed1
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user