mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 17:42:03 +02:00
media: i2c: msp3400-driver: Add missing media_entity_cleanup()
The remove function and the probe error path are missing calls to media_entity_cleanup(). Add them. Signed-off-by: Biren Pandya <birenpandya@gmail.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
This commit is contained in:
parent
d2bc475254
commit
87d1307b67
|
|
@ -717,6 +717,7 @@ static int msp_probe(struct i2c_client *client)
|
|||
if (state->rev1 == -1 || (state->rev1 == 0 && state->rev2 == 0)) {
|
||||
dev_dbg_lvl(&client->dev, 1, msp_debug,
|
||||
"not an msp3400 (cannot read chip version)\n");
|
||||
media_entity_cleanup(&sd->entity);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
|
|
@ -812,6 +813,7 @@ static int msp_probe(struct i2c_client *client)
|
|||
int err = hdl->error;
|
||||
|
||||
v4l2_ctrl_handler_free(hdl);
|
||||
media_entity_cleanup(&sd->entity);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
|
@ -865,6 +867,7 @@ static void msp_remove(struct i2c_client *client)
|
|||
msp_reset(client);
|
||||
|
||||
v4l2_ctrl_handler_free(&state->hdl);
|
||||
media_entity_cleanup(&state->sd.entity);
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user