Commit c0ff9f4c authored by Wolfram Sang's avatar Wolfram Sang Committed by Mauro Carvalho Chehab

[media] media: video: do not clear 'driver' from an i2c_client

The i2c-core does this already.
Reported-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarWolfram Sang <w.sang@pengutronix.de>
Acked-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 9a9dcb4a
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment