mfd: 88pm80x: Double shifting bug in suspend/resume
[deliverable/linux.git] / include / linux / mfd / 88pm80x.h
index d409ceb2231ec1908842416a9de1ddb62bef2709..c118a7ec94d6f15b25f558dbd171336da400a9f6 100644 (file)
@@ -350,7 +350,7 @@ static inline int pm80x_dev_suspend(struct device *dev)
        int irq = platform_get_irq(pdev, 0);
 
        if (device_may_wakeup(dev))
-               set_bit((1 << irq), &chip->wu_flag);
+               set_bit(irq, &chip->wu_flag);
 
        return 0;
 }
@@ -362,7 +362,7 @@ static inline int pm80x_dev_resume(struct device *dev)
        int irq = platform_get_irq(pdev, 0);
 
        if (device_may_wakeup(dev))
-               clear_bit((1 << irq), &chip->wu_flag);
+               clear_bit(irq, &chip->wu_flag);
 
        return 0;
 }
This page took 0.023497 seconds and 5 git commands to generate.