Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357421
b: refs/heads/master
c: 97466d0
h: refs/heads/master
i:
  357419: 05e0016
v: v3
  • Loading branch information
Sachin Kamat authored and Mauro Carvalho Chehab committed Feb 5, 2013
1 parent d357a48 commit 397bb1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 23575bf4219c06057632e601524ee66cccf03703
refs/heads/master: 97466d0da3b08e087e517725ab56c7a2a2df706f
7 changes: 2 additions & 5 deletions trunk/drivers/media/i2c/s5k6aa.c
Original file line number Diff line number Diff line change
Expand Up @@ -1598,7 +1598,7 @@ static int s5k6aa_probe(struct i2c_client *client,
for (i = 0; i < S5K6AA_NUM_SUPPLIES; i++)
s5k6aa->supplies[i].supply = s5k6aa_supply_names[i];

ret = regulator_bulk_get(&client->dev, S5K6AA_NUM_SUPPLIES,
ret = devm_regulator_bulk_get(&client->dev, S5K6AA_NUM_SUPPLIES,
s5k6aa->supplies);
if (ret) {
dev_err(&client->dev, "Failed to get regulators\n");
Expand All @@ -1607,7 +1607,7 @@ static int s5k6aa_probe(struct i2c_client *client,

ret = s5k6aa_initialize_ctrls(s5k6aa);
if (ret)
goto out_err4;
goto out_err3;

s5k6aa_presets_data_init(s5k6aa);

Expand All @@ -1618,8 +1618,6 @@ static int s5k6aa_probe(struct i2c_client *client,

return 0;

out_err4:
regulator_bulk_free(S5K6AA_NUM_SUPPLIES, s5k6aa->supplies);
out_err3:
s5k6aa_free_gpios(s5k6aa);
out_err2:
Expand All @@ -1635,7 +1633,6 @@ static int s5k6aa_remove(struct i2c_client *client)
v4l2_device_unregister_subdev(sd);
v4l2_ctrl_handler_free(sd->ctrl_handler);
media_entity_cleanup(&sd->entity);
regulator_bulk_free(S5K6AA_NUM_SUPPLIES, s5k6aa->supplies);
s5k6aa_free_gpios(s5k6aa);

return 0;
Expand Down

0 comments on commit 397bb1b

Please sign in to comment.