summaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-09-20 06:27:59 +0200
committerBryan Wu <cooloney@gmail.com>2013-10-22 19:57:34 +0200
commitb4f31ad6184fd5124abdb69b3b7ee5c18ac76db6 (patch)
treeb9e6b57e792ad5d40858e4a1e6a093995aa673a1 /drivers/leds
parentleds: lp55xx: enable setting default trigger (diff)
downloadlinux-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>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-dac124s085.c3
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;
}