Commit 00afb429 authored by Axel Lin's avatar Axel Lin Committed by Thierry Reding

pwm: lp3943: Set pwm_chip can_sleep flag

Read/write through I2C can sleep, thus set pwm_chip can_sleep flag.
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent cf3a384b
...@@ -278,6 +278,7 @@ static int lp3943_pwm_probe(struct platform_device *pdev) ...@@ -278,6 +278,7 @@ static int lp3943_pwm_probe(struct platform_device *pdev)
lp3943_pwm->chip.dev = &pdev->dev; lp3943_pwm->chip.dev = &pdev->dev;
lp3943_pwm->chip.ops = &lp3943_pwm_ops; lp3943_pwm->chip.ops = &lp3943_pwm_ops;
lp3943_pwm->chip.npwm = LP3943_NUM_PWMS; lp3943_pwm->chip.npwm = LP3943_NUM_PWMS;
lp3943_pwm->chip.can_sleep = true;
platform_set_drvdata(pdev, lp3943_pwm); platform_set_drvdata(pdev, lp3943_pwm);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment