Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330831
b: refs/heads/master
c: dc9c94c
h: refs/heads/master
i:
  330829: 3a86637
  330827: 915419e
  330823: 9fd3c46
  330815: 7f194e7
v: v3
  • Loading branch information
Sachin Kamat authored and Mauro Carvalho Chehab committed Aug 14, 2012
1 parent 5b06aa5 commit ad052d5
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: b08deebebe13c73b35701d180a4689dfb34db519
refs/heads/master: dc9c94cd339dc74b73ca7ef0943ea610d02f8e3e
7 changes: 2 additions & 5 deletions trunk/drivers/media/video/s5k6aa.c
Original file line number Diff line number Diff line change
Expand Up @@ -1568,7 +1568,7 @@ static int s5k6aa_probe(struct i2c_client *client,
return -EINVAL;
}

s5k6aa = kzalloc(sizeof(*s5k6aa), GFP_KERNEL);
s5k6aa = devm_kzalloc(&client->dev, sizeof(*s5k6aa), GFP_KERNEL);
if (!s5k6aa)
return -ENOMEM;

Expand All @@ -1592,7 +1592,7 @@ static int s5k6aa_probe(struct i2c_client *client,
sd->entity.type = MEDIA_ENT_T_V4L2_SUBDEV_SENSOR;
ret = media_entity_init(&sd->entity, 1, &s5k6aa->pad, 0);
if (ret)
goto out_err1;
return ret;

ret = s5k6aa_configure_gpios(s5k6aa, pdata);
if (ret)
Expand Down Expand Up @@ -1627,8 +1627,6 @@ static int s5k6aa_probe(struct i2c_client *client,
s5k6aa_free_gpios(s5k6aa);
out_err2:
media_entity_cleanup(&s5k6aa->sd.entity);
out_err1:
kfree(s5k6aa);
return ret;
}

Expand All @@ -1642,7 +1640,6 @@ static int s5k6aa_remove(struct i2c_client *client)
media_entity_cleanup(&sd->entity);
regulator_bulk_free(S5K6AA_NUM_SUPPLIES, s5k6aa->supplies);
s5k6aa_free_gpios(s5k6aa);
kfree(s5k6aa);

return 0;
}
Expand Down

0 comments on commit ad052d5

Please sign in to comment.