From: Chuhong Yuan Date: Mon, 18 Nov 2019 11:40:41 +0000 (+0100) Subject: media: usb: go7007: s2250-board: add missed i2c_unregister_device X-Git-Tag: v5.6-rc1~93^2~176 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8c956f3be17eaed62edb055a0fbce15e3080d953;p=thirdparty%2Flinux.git media: usb: go7007: s2250-board: add missed i2c_unregister_device The driver forgets to call i2c_unregister_device in remove like what is done in probe failure. Add the missed call to fix it. Signed-off-by: Chuhong Yuan Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/go7007/s2250-board.c b/drivers/media/usb/go7007/s2250-board.c index 49e75a1a1f3f8..b9e45124673b6 100644 --- a/drivers/media/usb/go7007/s2250-board.c +++ b/drivers/media/usb/go7007/s2250-board.c @@ -607,6 +607,7 @@ static int s2250_remove(struct i2c_client *client) { struct s2250 *state = to_state(i2c_get_clientdata(client)); + i2c_unregister_device(state->audio); v4l2_device_unregister_subdev(&state->sd); v4l2_ctrl_handler_free(&state->hdl); kfree(state);