提交 065792ad 编写于 作者: S Sachin Kamat 提交者: Jonathan Cameron

staging: iio: lpc32xx_adc: Remove redundant platform_set_drvdata()

Commit 0998d063 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Tested-by: NRoland Stigge <stigge@antcom.de>
Acked-by: NRoland Stigge <stigge@antcom.de>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 a4cac959
...@@ -215,7 +215,6 @@ static int lpc32xx_adc_remove(struct platform_device *pdev) ...@@ -215,7 +215,6 @@ static int lpc32xx_adc_remove(struct platform_device *pdev)
iio_device_unregister(iodev); iio_device_unregister(iodev);
free_irq(irq, info); free_irq(irq, info);
platform_set_drvdata(pdev, NULL);
clk_put(info->clk); clk_put(info->clk);
iounmap(info->adc_base); iounmap(info->adc_base);
iio_device_free(iodev); iio_device_free(iodev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册