diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-20 08:27:59 +0400 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2013-10-22 21:57:34 +0400 |
commit | b4f31ad6184fd5124abdb69b3b7ee5c18ac76db6 (patch) | |
tree | b9e6b57e792ad5d40858e4a1e6a093995aa673a1 /drivers/leds | |
parent | f65f0a1a9836abbfbe5c9b8fa0452e4d8eb7bf00 (diff) | |
download | linux-b4f31ad6184fd5124abdb69b3b7ee5c18ac76db6.tar.xz |
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>
Diffstat (limited to 'drivers/leds')
-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; } |