Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263957
b: refs/heads/master
c: 7eb3154
h: refs/heads/master
i:
  263955: 5730018
v: v3
  • Loading branch information
MyungJoo Ham authored and Samuel Ortiz committed Sep 6, 2011
1 parent ca7b295 commit 771ff5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fa948761e685fb03823b3029e5b6bdb52229d6ce
refs/heads/master: 7eb3154e6caf7945ce60c196637b7ac06213befd
5 changes: 5 additions & 0 deletions trunk/drivers/mfd/max8997.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,13 @@ static int max8997_i2c_probe(struct i2c_client *i2c,
max8997->dev = &i2c->dev;
max8997->i2c = i2c;
max8997->type = id->driver_data;
max8997->irq = i2c->irq;

if (!pdata)
goto err;

max8997->irq_base = pdata->irq_base;
max8997->ono = pdata->ono;
max8997->wakeup = pdata->wakeup;

mutex_init(&max8997->iolock);
Expand All @@ -152,6 +155,8 @@ static int max8997_i2c_probe(struct i2c_client *i2c,

pm_runtime_set_active(max8997->dev);

max8997_irq_init(max8997);

mfd_add_devices(max8997->dev, -1, max8997_devs,
ARRAY_SIZE(max8997_devs),
NULL, 0);
Expand Down

0 comments on commit 771ff5b

Please sign in to comment.