diff options
author | Chuhong Yuan <hslester96@gmail.com> | 2019-11-18 12:40:41 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2019-12-13 09:19:29 +0100 |
commit | 8c956f3be17eaed62edb055a0fbce15e3080d953 (patch) | |
tree | a0a5920a0ee525c5e2842bd3c8cc29d20a58f665 /drivers | |
parent | dc4cac67e13515835ed8081d510aa507aacb013b (diff) | |
download | linux-8c956f3be17eaed62edb055a0fbce15e3080d953.tar.bz2 |
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 <hslester96@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/usb/go7007/s2250-board.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/usb/go7007/s2250-board.c b/drivers/media/usb/go7007/s2250-board.c index 49e75a1a1f3f..b9e45124673b 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); |