pwm: lp3943: Set pwm_chip can_sleep flag
authorAxel Lin <axel.lin@ingics.com>
Tue, 15 Apr 2014 16:38:10 +0000 (00:38 +0800)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 21 May 2014 10:09:09 +0000 (12:09 +0200)
Read/write through I2C can sleep, thus set pwm_chip can_sleep flag.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-lp3943.c

index a40b9c34e9fffcd2bce08169cd7a256de067027f..2c39b0e50fa4a3eab0b48a6db8ddfdf3c7318e49 100644 (file)
@@ -278,6 +278,7 @@ static int lp3943_pwm_probe(struct platform_device *pdev)
        lp3943_pwm->chip.dev = &pdev->dev;
        lp3943_pwm->chip.ops = &lp3943_pwm_ops;
        lp3943_pwm->chip.npwm = LP3943_NUM_PWMS;
+       lp3943_pwm->chip.can_sleep = true;
 
        platform_set_drvdata(pdev, lp3943_pwm);
 
This page took 0.04189 seconds and 5 git commands to generate.