提交 b13f4af2 编写于 作者: L Lars-Peter Clausen 提交者: 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: NLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 297a0ae3
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册