projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a229b7
)
Input: tsc2005 - remove redundant spi_set_drvdata
author
Sachin Kamat
<
[email protected]
>
Fri, 20 Sep 2013 16:38:46 +0000
(09:38 -0700)
committer
Dmitry Torokhov
<
[email protected]
>
Fri, 20 Sep 2013 16:58:31 +0000
(09:58 -0700)
Driver core sets driver data to NULL upon failure or remove.
Signed-off-by: Sachin Kamat <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/touchscreen/tsc2005.c
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/tsc2005.c
b/drivers/input/touchscreen/tsc2005.c
index 7213e8b07e79bfa48d8b0e5d1f89d5684fee711c..811353353917d2b5f0440b8c5a5f5a704cd6c1e9 100644
(file)
--- a/
drivers/input/touchscreen/tsc2005.c
+++ b/
drivers/input/touchscreen/tsc2005.c
@@
-678,7
+678,6
@@
static int tsc2005_probe(struct spi_device *spi)
err_remove_sysfs:
sysfs_remove_group(&spi->dev.kobj, &tsc2005_attr_group);
err_clear_drvdata:
- spi_set_drvdata(spi, NULL);
free_irq(spi->irq, ts);
err_free_mem:
input_free_device(input_dev);
@@
-696,7
+695,6
@@
static int tsc2005_remove(struct spi_device *spi)
input_unregister_device(ts->idev);
kfree(ts);
- spi_set_drvdata(spi, NULL);
return 0;
}