提交 b4f31ad6 编写于 作者: S Sachin Kamat 提交者: Bryan Wu

leds: dac124s085: Remove redundant spi_set_drvdata

Driver core sets driver data to NULL upon failure or remove.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Cc: Guennadi Liakhovetski <lg@denx.de>
Signed-off-by: NBryan Wu <cooloney@gmail.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册