Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271649
b: refs/heads/master
c: 31ee95e
h: refs/heads/master
i:
  271647: f4c749c
v: v3
  • Loading branch information
Andy Shevchenko authored and Mauro Carvalho Chehab committed Aug 6, 2011
1 parent 7e94800 commit ac9b2d2
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 572064280ecc9dc89227cf3797bc2144896a34f5
refs/heads/master: 31ee95ec2d3dd3b6f68d7fa0f410045652895af2
11 changes: 9 additions & 2 deletions trunk/drivers/media/video/adp1653.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,12 +429,19 @@ static int adp1653_probe(struct i2c_client *client,
flash->subdev.internal_ops = &adp1653_internal_ops;
flash->subdev.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;

adp1653_init_controls(flash);
ret = adp1653_init_controls(flash);
if (ret)
goto free_and_quit;

ret = media_entity_init(&flash->subdev.entity, 0, NULL, 0);
if (ret < 0)
kfree(flash);
goto free_and_quit;

return 0;

free_and_quit:
v4l2_ctrl_handler_free(&flash->ctrls);
kfree(flash);
return ret;
}

Expand Down

0 comments on commit ac9b2d2

Please sign in to comment.