projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f65f0a1
)
leds: dac124s085: Remove redundant spi_set_drvdata
author
Sachin Kamat
<sachin.kamat@linaro.org>
Fri, 20 Sep 2013 04:27:59 +0000
(21:27 -0700)
committer
Bryan Wu
<cooloney@gmail.com>
Tue, 22 Oct 2013 17:57:34 +0000
(10:57 -0700)
Driver core sets driver data to NULL upon failure or remove.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Guennadi Liakhovetski <lg@denx.de>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-dac124s085.c
patch
|
blob
|
history
diff --git
a/drivers/leds/leds-dac124s085.c
b/drivers/leds/leds-dac124s085.c
index
1f9d8e6
..
db3ba8b
100644
(file)
--- a/
drivers/leds/leds-dac124s085.c
+++ b/
drivers/leds/leds-dac124s085.c
@@
-101,7
+101,6
@@
eledcr:
while (i--)
led_classdev_unregister(&dac->leds[i].ldev);
- spi_set_drvdata(spi, NULL);
return ret;
}
@@
-115,8
+114,6
@@
static int dac124s085_remove(struct spi_device *spi)
cancel_work_sync(&dac->leds[i].work);
}
- spi_set_drvdata(spi, NULL);
-
return 0;
}