Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272181
b: refs/heads/master
c: 0021586
h: refs/heads/master
i:
  272179: a1c5cbd
v: v3
  • Loading branch information
Éric Piel authored and Linus Torvalds committed Nov 1, 2011
1 parent f4881f7 commit 0dea210
Show file tree
Hide file tree
Showing 2 changed files with 8 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: d0b6a971ed034054897df42f3e3000b4f57cccc5
refs/heads/master: 0021586b958d7eb5d73dbb9c42a0b4f19ebe3a9e
9 changes: 7 additions & 2 deletions trunk/drivers/misc/lis3lv02d/lis3lv02d_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,13 @@ static int __devinit lis3lv02d_i2c_probe(struct i2c_client *client,
if (lis3_dev.reg_ctrl)
lis3_reg_ctrl(&lis3_dev, LIS3_REG_OFF);

if (ret == 0)
return 0;
if (ret)
goto fail2;
return 0;

fail2:
regulator_bulk_free(ARRAY_SIZE(lis3_dev.regulators),
lis3_dev.regulators);
fail:
if (pdata && pdata->release_resources)
pdata->release_resources();
Expand Down

0 comments on commit 0dea210

Please sign in to comment.