Commit b4f31ad6 authored by Sachin Kamat's avatar Sachin Kamat Committed by Bryan Wu

leds: dac124s085: Remove redundant spi_set_drvdata

Driver core sets driver data to NULL upon failure or remove.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Cc: Guennadi Liakhovetski <lg@denx.de>
Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
parent f65f0a1a
...@@ -101,7 +101,6 @@ static int dac124s085_probe(struct spi_device *spi) ...@@ -101,7 +101,6 @@ static int dac124s085_probe(struct spi_device *spi)
while (i--) while (i--)
led_classdev_unregister(&dac->leds[i].ldev); led_classdev_unregister(&dac->leds[i].ldev);
spi_set_drvdata(spi, NULL);
return ret; return ret;
} }
...@@ -115,8 +114,6 @@ static int dac124s085_remove(struct spi_device *spi) ...@@ -115,8 +114,6 @@ static int dac124s085_remove(struct spi_device *spi)
cancel_work_sync(&dac->leds[i].work); cancel_work_sync(&dac->leds[i].work);
} }
spi_set_drvdata(spi, NULL);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment