mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
media: i2c: saa7115: 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:
parent
ff340ae9b1
commit
6787d5189e
|
|
@ -1867,6 +1867,7 @@ static int saa711x_probe(struct i2c_client *client)
|
|||
int err = hdl->error;
|
||||
|
||||
v4l2_ctrl_handler_free(hdl);
|
||||
media_entity_cleanup(&sd->entity);
|
||||
return err;
|
||||
}
|
||||
v4l2_ctrl_auto_cluster(2, &state->agc, 0, true);
|
||||
|
|
@ -1925,6 +1926,7 @@ static void saa711x_remove(struct i2c_client *client)
|
|||
|
||||
v4l2_device_unregister_subdev(sd);
|
||||
v4l2_ctrl_handler_free(sd->ctrl_handler);
|
||||
media_entity_cleanup(&sd->entity);
|
||||
}
|
||||
|
||||
static const struct i2c_device_id saa711x_id[] = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user