提交 c0ff9f4c 编写于 作者: W Wolfram Sang 提交者: Mauro Carvalho Chehab

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

The i2c-core does this already.
Reported-by: NJean Delvare <khali@linux-fr.org>
Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
Acked-by: NGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册