diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-20 06:27:59 +0200 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2013-10-22 19:57:34 +0200 |
commit | b4f31ad6184fd5124abdb69b3b7ee5c18ac76db6 (patch) | |
tree | b9e6b57e792ad5d40858e4a1e6a093995aa673a1 | |
parent | leds: lp55xx: enable setting default trigger (diff) | |
download | linux-b4f31ad6184fd5124abdb69b3b7ee5c18ac76db6.tar.xz linux-b4f31ad6184fd5124abdb69b3b7ee5c18ac76db6.zip |
leds: dac124s085: Remove redundant spi_set_drvdata
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>
-rw-r--r-- | drivers/leds/leds-dac124s085.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/leds/leds-dac124s085.c b/drivers/leds/leds-dac124s085.c index 1f9d8e62d37e..db3ba8b42517 100644 --- 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; } |