watchdog: omap_wdt: delete redundant platform_set_drvdata() calls
It's not needed to manually reset the driver data. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
This commit is contained in:
Родитель
4f4753d96d
Коммит
ef48174729
|
@ -278,7 +278,6 @@ static int omap_wdt_probe(struct platform_device *pdev)
|
|||
|
||||
err_register:
|
||||
pm_runtime_disable(wdev->dev);
|
||||
platform_set_drvdata(pdev, NULL);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -304,7 +303,6 @@ static int omap_wdt_remove(struct platform_device *pdev)
|
|||
|
||||
pm_runtime_disable(wdev->dev);
|
||||
watchdog_unregister_device(wdog);
|
||||
platform_set_drvdata(pdev, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче