Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319708
b: refs/heads/master
c: ff2b7ac
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Samuel Ortiz committed Jul 8, 2012
1 parent 102e3c5 commit e42d0c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 8b7353d17542b2a513aa62a9856215e99ddb8403
refs/heads/master: ff2b7ac6f6c58b0011d9d73004fb6e396f514018
7 changes: 4 additions & 3 deletions trunk/drivers/mfd/max77693.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ static int max77693_i2c_probe(struct i2c_client *i2c,

ret = max77693_irq_init(max77693);
if (ret < 0)
goto err_mfd;
goto err_irq;

pm_runtime_set_active(max77693->dev);

Expand All @@ -168,11 +168,11 @@ static int max77693_i2c_probe(struct i2c_client *i2c,
return ret;

err_mfd:
max77693_irq_exit(max77693);
err_irq:
i2c_unregister_device(max77693->muic);
i2c_unregister_device(max77693->haptic);
err_regmap:
kfree(max77693);

return ret;
}

Expand All @@ -181,6 +181,7 @@ static int max77693_i2c_remove(struct i2c_client *i2c)
struct max77693_dev *max77693 = i2c_get_clientdata(i2c);

mfd_remove_devices(max77693->dev);
max77693_irq_exit(max77693);
i2c_unregister_device(max77693->muic);
i2c_unregister_device(max77693->haptic);

Expand Down

0 comments on commit e42d0c1

Please sign in to comment.