|
@@ -448,6 +448,7 @@ static int max8997_suspend(struct device *dev)
|
|
|
struct i2c_client *i2c = to_i2c_client(dev);
|
|
|
struct max8997_dev *max8997 = i2c_get_clientdata(i2c);
|
|
|
|
|
|
+ disable_irq(max8997->irq);
|
|
|
if (device_may_wakeup(dev))
|
|
|
irq_set_irq_wake(max8997->irq, 1);
|
|
|
return 0;
|
|
@@ -460,6 +461,7 @@ static int max8997_resume(struct device *dev)
|
|
|
|
|
|
if (device_may_wakeup(dev))
|
|
|
irq_set_irq_wake(max8997->irq, 0);
|
|
|
+ enable_irq(max8997->irq);
|
|
|
return max8997_irq_resume(max8997);
|
|
|
}
|
|
|
|