mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 12:52:29 -04:00
media: i2c: cx25840-core: Add missing media_entity_cleanup()
The remove function is missing a call to media_entity_cleanup(). Add it. Signed-off-by: Biren Pandya <birenpandya@gmail.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
This commit is contained in:
committed by
Sakari Ailus
parent
9fa26c971c
commit
634be628b5
@@ -3962,6 +3962,7 @@ static int cx25840_probe(struct i2c_client *client)
|
||||
int err = state->hdl.error;
|
||||
|
||||
v4l2_ctrl_handler_free(&state->hdl);
|
||||
media_entity_cleanup(&sd->entity);
|
||||
return err;
|
||||
}
|
||||
if (!is_cx2583x(state))
|
||||
@@ -3986,6 +3987,7 @@ static void cx25840_remove(struct i2c_client *client)
|
||||
cx25840_ir_remove(sd);
|
||||
v4l2_device_unregister_subdev(sd);
|
||||
v4l2_ctrl_handler_free(&state->hdl);
|
||||
media_entity_cleanup(&sd->entity);
|
||||
}
|
||||
|
||||
static const struct i2c_device_id cx25840_id[] = {
|
||||
|
||||
Reference in New Issue
Block a user