projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2aabeb2
)
mtd: sst25l: Remove redundant spi_set_drvdata
author
Sachin Kamat
<sachin.kamat@linaro.org>
Tue, 8 Oct 2013 09:21:33 +0000
(14:51 +0530)
committer
Brian Norris
<computersforpeace@gmail.com>
Thu, 7 Nov 2013 07:32:48 +0000
(23:32 -0800)
Driver core will set the driver data to NULL upon detach
or probe failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/sst25l.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mtd/devices/sst25l.c
b/drivers/mtd/devices/sst25l.c
index a42f1f0e7281417398f4de453845ff8edf79b60c..7cc70db97e593380526751b7cdee522dd40dd825 100644
(file)
--- a/
drivers/mtd/devices/sst25l.c
+++ b/
drivers/mtd/devices/sst25l.c
@@
-404,7
+404,6
@@
static int sst25l_probe(struct spi_device *spi)
data ? data->nr_parts : 0);
if (ret) {
kfree(flash);
- spi_set_drvdata(spi, NULL);
return -ENODEV;
}