diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-03-07 16:14:28 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-03-11 13:23:35 (GMT) |
commit | b13f4af25c0a36d74a69f7d30e2a28fa941e99b5 (patch) | |
tree | 13504f1b92833d0cbbac64c388c88279e32e940a /drivers | |
parent | 297a0ae32bf84c8ae135971eb21f18ee5f4ca3ea (diff) | |
download | linux-b13f4af25c0a36d74a69f7d30e2a28fa941e99b5.tar.xz |
[media] adv7180: Free control handler on remove()
Make sure to free the control handler when the device is removed.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/i2c/adv7180.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c index 1a3622a..2359fd8 100644 --- a/drivers/media/i2c/adv7180.c +++ b/drivers/media/i2c/adv7180.c @@ -641,6 +641,7 @@ static int adv7180_remove(struct i2c_client *client) } v4l2_device_unregister_subdev(sd); + adv7180_exit_controls(state); mutex_destroy(&state->mutex); return 0; } |