mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 15:20:41 +00:00
staging: iio: spear_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>
Acked-by: Stefan Roese <sr@denx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
d0695f4ece
commit
a4cac95904
1 changed files with 0 additions and 1 deletions
|
@ -407,7 +407,6 @@ static int spear_adc_remove(struct platform_device *pdev)
|
|||
struct spear_adc_info *info = iio_priv(iodev);
|
||||
|
||||
iio_device_unregister(iodev);
|
||||
platform_set_drvdata(pdev, NULL);
|
||||
clk_disable_unprepare(info->clk);
|
||||
clk_put(info->clk);
|
||||
iounmap(info->adc_base_spear6xx);
|
||||
|
|
Loading…
Reference in a new issue