mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 22:14:36 -04:00
staging: iio: lpc32xx_adc: Remove redundant platform_set_drvdata()
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Tested-by: Roland Stigge <stigge@antcom.de>
Acked-by: Roland Stigge <stigge@antcom.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
committed by
Jonathan Cameron
parent
a4cac95904
commit
065792ad0d
@@ -215,7 +215,6 @@ static int lpc32xx_adc_remove(struct platform_device *pdev)
|
||||
|
||||
iio_device_unregister(iodev);
|
||||
free_irq(irq, info);
|
||||
platform_set_drvdata(pdev, NULL);
|
||||
clk_put(info->clk);
|
||||
iounmap(info->adc_base);
|
||||
iio_device_free(iodev);
|
||||
|
||||
Reference in New Issue
Block a user