diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-18 10:45:57 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-09-18 11:00:31 -0400 |
commit | 8474caddccedcbf6da59f3ed3bc5c4d9442f8e5d (patch) | |
tree | 073a1a0ea5bfc824448e75a24f8281b9e7ed7b01 /drivers/input/touchscreen | |
parent | 4ba25a496f62129a2ad8c2436ab2b402752dc66c (diff) |
Input: cyttsp4_core - remove redundant dev_set_drvdata
Driver core sets the data to NULL upon release or probe
failure. Hence explicit setting is not necessary.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r-- | drivers/input/touchscreen/cyttsp4_core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/cyttsp4_core.c b/drivers/input/touchscreen/cyttsp4_core.c index d038575f49db..42d830efa316 100644 --- a/drivers/input/touchscreen/cyttsp4_core.c +++ b/drivers/input/touchscreen/cyttsp4_core.c | |||
@@ -2113,7 +2113,6 @@ error_startup: | |||
2113 | error_request_irq: | 2113 | error_request_irq: |
2114 | if (cd->cpdata->init) | 2114 | if (cd->cpdata->init) |
2115 | cd->cpdata->init(cd->cpdata, 0, dev); | 2115 | cd->cpdata->init(cd->cpdata, 0, dev); |
2116 | dev_set_drvdata(dev, NULL); | ||
2117 | error_free_xfer: | 2116 | error_free_xfer: |
2118 | kfree(cd->xfer_buf); | 2117 | kfree(cd->xfer_buf); |
2119 | error_free_cd: | 2118 | error_free_cd: |
@@ -2151,7 +2150,6 @@ int cyttsp4_remove(struct cyttsp4 *cd) | |||
2151 | free_irq(cd->irq, cd); | 2150 | free_irq(cd->irq, cd); |
2152 | if (cd->cpdata->init) | 2151 | if (cd->cpdata->init) |
2153 | cd->cpdata->init(cd->cpdata, 0, dev); | 2152 | cd->cpdata->init(cd->cpdata, 0, dev); |
2154 | dev_set_drvdata(dev, NULL); | ||
2155 | cyttsp4_free_si_ptrs(cd); | 2153 | cyttsp4_free_si_ptrs(cd); |
2156 | kfree(cd); | 2154 | kfree(cd); |
2157 | return 0; | 2155 | return 0; |