From: Lars-Peter Clausen Date: Fri, 7 Mar 2014 16:14:28 +0000 (-0300) Subject: upstream: [media] adv7180: Free control handler on remove() X-Git-Tag: submit/tizen/20141121.110247~1364 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9eb06e47cc950b386b6259b2e3a46396135aef8a;p=platform%2Fkernel%2Flinux-3.10.git upstream: [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 Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- 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; }