Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
+0 −1
Original line number Diff line number Diff line
@@ -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;
+0 −1
Original line number Diff line number Diff line
@@ -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;
+0 −1
Original line number Diff line number Diff line
@@ -896,7 +896,6 @@ static int mt9t031_remove(struct i2c_client *client)

	if (icd)
		icd->ops = NULL;
	client->driver = NULL;
	kfree(mt9t031);

	return 0;
+0 −1
Original line number Diff line number Diff line
@@ -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;
Loading