Commit 2e2a0f6e authored by Florian Vaussard's avatar Florian Vaussard Committed by Thierry Reding
Browse files

pwm: Add can_sleep property to drivers



Calls to PWM drivers connected through I2C can sleep.
Use the new can_sleep property.

Acked-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarFlorian Vaussard <florian.vaussard@epfl.ch>
Signed-off-by: default avatarThierry Reding <thierry.reding@avionic-design.de>
parent 6e69ab13
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);

+1 −0
Original line number Diff line number Diff line
@@ -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);