Skip to content

Commit 5c327f0

Browse files
mitaehristev
authored andcommitted
media: ov7670: use v4l2_async_unregister_subdev()
The sub-device for ov7670 is registered by v4l2_async_register_subdev(). So it should be unregistered by v4l2_async_unregister_subdev() instead of v4l2_device_unregister_subdev(). Cc: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
1 parent f10ec82 commit 5c327f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/media/i2c/ov7670.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,7 @@ static int ov7670_remove(struct i2c_client *client)
18201820
struct v4l2_subdev *sd = i2c_get_clientdata(client);
18211821
struct ov7670_info *info = to_state(sd);
18221822

1823-
v4l2_device_unregister_subdev(sd);
1823+
v4l2_async_unregister_subdev(sd);
18241824
v4l2_ctrl_handler_free(&info->hdl);
18251825
clk_disable_unprepare(info->clk);
18261826
#if defined(CONFIG_MEDIA_CONTROLLER)

0 commit comments

Comments
 (0)