aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2010-11-10 09:14:13 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-12-29 05:16:47 -0500
commitc0ff9f4c24a2571943c0d0991c2cb9ac90dc1915 (patch)
tree1ce53de77bf933d2eecd4ba61e736e3876a52ca8
parent9a9dcb4a19c29ec01e7d249e3dae2d589af86480 (diff)
[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>
-rw-r--r--drivers/media/video/imx074.c2
-rw-r--r--drivers/media/video/mt9m001.c1
-rw-r--r--drivers/media/video/mt9m111.c1
-rw-r--r--drivers/media/video/mt9t031.c1
-rw-r--r--drivers/media/video/mt9v022.c1
-rw-r--r--drivers/media/video/rj54n1cb0c.c1
6 files changed, 1 insertions, 6 deletions
diff --git a/drivers/media/video/imx074.c b/drivers/media/video/imx074.c
index 27b5dfdfbb93..b9c91c1839f8 100644
--- a/drivers/media/video/imx074.c
+++ b/drivers/media/video/imx074.c
@@ -467,7 +467,7 @@ static int imx074_remove(struct i2c_client *client)
467 icd->ops = NULL; 467 icd->ops = NULL;
468 if (icl->free_bus) 468 if (icl->free_bus)
469 icl->free_bus(icl); 469 icl->free_bus(icl);
470 client->driver = NULL; 470 i2c_set_clientdata(client, NULL);
471 kfree(priv); 471 kfree(priv);
472 472
473 return 0; 473 return 0;
diff --git a/drivers/media/video/mt9m001.c b/drivers/media/video/mt9m001.c
index fcb4cd941853..f7fc88d240e6 100644
--- a/drivers/media/video/mt9m001.c
+++ b/drivers/media/video/mt9m001.c
@@ -798,7 +798,6 @@ static int mt9m001_remove(struct i2c_client *client)
798 798
799 icd->ops = NULL; 799 icd->ops = NULL;
800 mt9m001_video_remove(icd); 800 mt9m001_video_remove(icd);
801 client->driver = NULL;
802 kfree(mt9m001); 801 kfree(mt9m001);
803 802
804 return 0; 803 return 0;
diff --git a/drivers/media/video/mt9m111.c b/drivers/media/video/mt9m111.c
index 525a16e73285..53fa2a7bf156 100644
--- a/drivers/media/video/mt9m111.c
+++ b/drivers/media/video/mt9m111.c
@@ -1092,7 +1092,6 @@ static int mt9m111_remove(struct i2c_client *client)
1092 struct soc_camera_device *icd = client->dev.platform_data; 1092 struct soc_camera_device *icd = client->dev.platform_data;
1093 1093
1094 icd->ops = NULL; 1094 icd->ops = NULL;
1095 client->driver = NULL;
1096 kfree(mt9m111); 1095 kfree(mt9m111);
1097 1096
1098 return 0; 1097 return 0;
diff --git a/drivers/media/video/mt9t031.c b/drivers/media/video/mt9t031.c
index 9bd44a816ea1..7ce279c3751d 100644
--- a/drivers/media/video/mt9t031.c
+++ b/drivers/media/video/mt9t031.c
@@ -896,7 +896,6 @@ static int mt9t031_remove(struct i2c_client *client)
896 896
897 if (icd) 897 if (icd)
898 icd->ops = NULL; 898 icd->ops = NULL;
899 client->driver = NULL;
900 kfree(mt9t031); 899 kfree(mt9t031);
901 900
902 return 0; 901 return 0;
diff --git a/drivers/media/video/mt9v022.c b/drivers/media/video/mt9v022.c
index b96171cc79f9..6a784c87e5ff 100644
--- a/drivers/media/video/mt9v022.c
+++ b/drivers/media/video/mt9v022.c
@@ -930,7 +930,6 @@ static int mt9v022_remove(struct i2c_client *client)
930 930
931 icd->ops = NULL; 931 icd->ops = NULL;
932 mt9v022_video_remove(icd); 932 mt9v022_video_remove(icd);
933 client->driver = NULL;
934 kfree(mt9v022); 933 kfree(mt9v022);
935 934
936 return 0; 935 return 0;
diff --git a/drivers/media/video/rj54n1cb0c.c b/drivers/media/video/rj54n1cb0c.c
index d2fa2d43ff19..57e11b6f19fb 100644
--- a/drivers/media/video/rj54n1cb0c.c
+++ b/drivers/media/video/rj54n1cb0c.c
@@ -1460,7 +1460,6 @@ static int rj54n1_remove(struct i2c_client *client)
1460 icd->ops = NULL; 1460 icd->ops = NULL;
1461 if (icl->free_bus) 1461 if (icl->free_bus)
1462 icl->free_bus(icl); 1462 icl->free_bus(icl);
1463 client->driver = NULL;
1464 kfree(rj54n1); 1463 kfree(rj54n1);
1465 1464
1466 return 0; 1465 return 0;