Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284558
b: refs/heads/master
c: 7ef7359
h: refs/heads/master
v: v3
  • Loading branch information
Jonghwan Choi authored and Samuel Ortiz committed Jan 8, 2012
1 parent ac6d73e commit 51f2f80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bdd6a67a3936f4da5ef382ec640b8d1eb1f209fa
refs/heads/master: 7ef73598d4ca8add089d5eb9f3b78e9540a1a98d
6 changes: 4 additions & 2 deletions trunk/drivers/mfd/max8998.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ static int max8998_i2c_probe(struct i2c_client *i2c,
if (ret < 0)
goto err;

device_init_wakeup(max8998->dev, max8998->wakeup);

return ret;

err:
Expand Down Expand Up @@ -210,7 +212,7 @@ static int max8998_suspend(struct device *dev)
struct i2c_client *i2c = container_of(dev, struct i2c_client, dev);
struct max8998_dev *max8998 = i2c_get_clientdata(i2c);

if (max8998->wakeup)
if (device_may_wakeup(dev))
irq_set_irq_wake(max8998->irq, 1);
return 0;
}
Expand All @@ -220,7 +222,7 @@ static int max8998_resume(struct device *dev)
struct i2c_client *i2c = container_of(dev, struct i2c_client, dev);
struct max8998_dev *max8998 = i2c_get_clientdata(i2c);

if (max8998->wakeup)
if (device_may_wakeup(dev))
irq_set_irq_wake(max8998->irq, 0);
/*
* In LP3974, if IRQ registers are not "read & clear"
Expand Down

0 comments on commit 51f2f80

Please sign in to comment.