forked from luck/tmp_suning_uos_patched
[media] media: video: do not clear 'driver' from an i2c_client
The i2c-core does this already. Reported-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
9a9dcb4a19
commit
c0ff9f4c24
@ -467,7 +467,7 @@ static int imx074_remove(struct i2c_client *client)
|
||||
icd->ops = NULL;
|
||||
if (icl->free_bus)
|
||||
icl->free_bus(icl);
|
||||
client->driver = NULL;
|
||||
i2c_set_clientdata(client, NULL);
|
||||
kfree(priv);
|
||||
|
||||
return 0;
|
||||
|
@ -798,7 +798,6 @@ static int mt9m001_remove(struct i2c_client *client)
|
||||
|
||||
icd->ops = NULL;
|
||||
mt9m001_video_remove(icd);
|
||||
client->driver = NULL;
|
||||
kfree(mt9m001);
|
||||
|
||||
return 0;
|
||||
|
@ -1092,7 +1092,6 @@ static int mt9m111_remove(struct i2c_client *client)
|
||||
struct soc_camera_device *icd = client->dev.platform_data;
|
||||
|
||||
icd->ops = NULL;
|
||||
client->driver = NULL;
|
||||
kfree(mt9m111);
|
||||
|
||||
return 0;
|
||||
|
@ -896,7 +896,6 @@ static int mt9t031_remove(struct i2c_client *client)
|
||||
|
||||
if (icd)
|
||||
icd->ops = NULL;
|
||||
client->driver = NULL;
|
||||
kfree(mt9t031);
|
||||
|
||||
return 0;
|
||||
|
@ -930,7 +930,6 @@ static int mt9v022_remove(struct i2c_client *client)
|
||||
|
||||
icd->ops = NULL;
|
||||
mt9v022_video_remove(icd);
|
||||
client->driver = NULL;
|
||||
kfree(mt9v022);
|
||||
|
||||
return 0;
|
||||
|
@ -1460,7 +1460,6 @@ static int rj54n1_remove(struct i2c_client *client)
|
||||
icd->ops = NULL;
|
||||
if (icl->free_bus)
|
||||
icl->free_bus(icl);
|
||||
client->driver = NULL;
|
||||
kfree(rj54n1);
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user