Skip to content

Commit 781b045

Browse files
Sakari Ailusmchehab
authored andcommitted
media: imx274: Fix error handling, add MAINTAINERS entry
Add the missing MAINTAINERS entry for imx274, fix error handling in driver probe and unregister the correct control handler in driver remove. Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 487cc85 commit 781b045

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

MAINTAINERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12630,6 +12630,14 @@ S: Maintained
1263012630
F: drivers/ssb/
1263112631
F: include/linux/ssb/
1263212632

12633+
SONY IMX274 SENSOR DRIVER
12634+
M: Leon Luo <[email protected]>
12635+
12636+
T: git git://linuxtv.org/media_tree.git
12637+
S: Maintained
12638+
F: drivers/media/i2c/imx274.c
12639+
F: Documentation/devicetree/bindings/media/i2c/imx274.txt
12640+
1263312641
SONY MEMORYSTICK CARD SUPPORT
1263412642
M: Alex Dubov <[email protected]>
1263512643
W: http://tifmxx.berlios.de/

drivers/media/i2c/imx274.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,8 +1770,7 @@ static int imx274_probe(struct i2c_client *client,
17701770
return 0;
17711771

17721772
err_ctrls:
1773-
v4l2_async_unregister_subdev(sd);
1774-
v4l2_ctrl_handler_free(sd->ctrl_handler);
1773+
v4l2_ctrl_handler_free(&imx274->ctrls.handler);
17751774
err_me:
17761775
media_entity_cleanup(&sd->entity);
17771776
err_regmap:
@@ -1788,7 +1787,7 @@ static int imx274_remove(struct i2c_client *client)
17881787
imx274_write_table(imx274, mode_table[IMX274_MODE_STOP_STREAM]);
17891788

17901789
v4l2_async_unregister_subdev(sd);
1791-
v4l2_ctrl_handler_free(sd->ctrl_handler);
1790+
v4l2_ctrl_handler_free(&imx274->ctrls.handler);
17921791
media_entity_cleanup(&sd->entity);
17931792
mutex_destroy(&imx274->lock);
17941793
return 0;

0 commit comments

Comments
 (0)