summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-05-05 19:39:04 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-05-05 20:14:48 -0700
commit34f22fb2ffcf88415d922520849104c867f87c02 (patch)
tree86556f7e606100863ef913bca6ba3d491a0a0997 /drivers/input
parentfb1b1957ae361ce45042e2e388d9c308bce82099 (diff)
downloadlinux-34f22fb2ffcf88415d922520849104c867f87c02.tar.gz
linux-34f22fb2ffcf88415d922520849104c867f87c02.tar.bz2
linux-34f22fb2ffcf88415d922520849104c867f87c02.zip
Input: jornada720_ts - 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: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/touchscreen/jornada720_ts.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/jornada720_ts.c b/drivers/input/touchscreen/jornada720_ts.c
index 282d7c7ad2fc..e463a79ffecc 100644
--- a/drivers/input/touchscreen/jornada720_ts.c
+++ b/drivers/input/touchscreen/jornada720_ts.c
@@ -145,7 +145,6 @@ static int jornada720_ts_probe(struct platform_device *pdev)
fail2:
free_irq(IRQ_GPIO9, pdev);
fail1:
- platform_set_drvdata(pdev, NULL);
input_free_device(input_dev);
kfree(jornada_ts);
return error;
@@ -156,7 +155,6 @@ static int jornada720_ts_remove(struct platform_device *pdev)
struct jornada_ts *jornada_ts = platform_get_drvdata(pdev);
free_irq(IRQ_GPIO9, pdev);
- platform_set_drvdata(pdev, NULL);
input_unregister_device(jornada_ts->dev);
kfree(jornada_ts);