aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-05-13 04:24:07 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-05-27 08:30:34 -0400
commita0c6ae257e416e5cdf7018223500d327d58da2d7 (patch)
treefd099d013a61405337a0f658a8e34f4e9fc01767
parent6266a9d9b0e9824562c3c5604dd812d3befc72f1 (diff)
[media] timblogiw: Remove redundant platform_set_drvdata()
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no driver is bound) removes the need to set driver data field to NULL. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/platform/timblogiw.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/platform/timblogiw.c b/drivers/media/platform/timblogiw.c
index a2f7bdd5104f..99861c631798 100644
--- a/drivers/media/platform/timblogiw.c
+++ b/drivers/media/platform/timblogiw.c
@@ -834,11 +834,9 @@ static int timblogiw_probe(struct platform_device *pdev)
834 goto err_request; 834 goto err_request;
835 } 835 }
836 836
837
838 return 0; 837 return 0;
839 838
840err_request: 839err_request:
841 platform_set_drvdata(pdev, NULL);
842 v4l2_device_unregister(&lw->v4l2_dev); 840 v4l2_device_unregister(&lw->v4l2_dev);
843err_register: 841err_register:
844 kfree(lw); 842 kfree(lw);
@@ -858,8 +856,6 @@ static int timblogiw_remove(struct platform_device *pdev)
858 856
859 kfree(lw); 857 kfree(lw);
860 858
861 platform_set_drvdata(pdev, NULL);
862
863 return 0; 859 return 0;
864} 860}
865 861