diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-19 21:27:59 -0700 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2013-10-22 10:57:34 -0700 |
commit | b4f31ad6184fd5124abdb69b3b7ee5c18ac76db6 (patch) | |
tree | b9e6b57e792ad5d40858e4a1e6a093995aa673a1 /drivers/leds | |
parent | f65f0a1a9836abbfbe5c9b8fa0452e4d8eb7bf00 (diff) | |
download | lwn-b4f31ad6184fd5124abdb69b3b7ee5c18ac76db6.tar.gz lwn-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>
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; } |