Commit b13f4af2 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Mauro Carvalho Chehab

[media] adv7180: Free control handler on remove()

Make sure to free the control handler when the device is removed.
Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 297a0ae3
...@@ -641,6 +641,7 @@ static int adv7180_remove(struct i2c_client *client) ...@@ -641,6 +641,7 @@ static int adv7180_remove(struct i2c_client *client)
} }
v4l2_device_unregister_subdev(sd); v4l2_device_unregister_subdev(sd);
adv7180_exit_controls(state);
mutex_destroy(&state->mutex); mutex_destroy(&state->mutex);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment