edac: 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>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
This commit is contained in:
parent
cf3a13d790
commit
8e42e211e4
@ -257,7 +257,6 @@ static void __exit tile_edac_exit(void)
|
|||||||
if (!pdev)
|
if (!pdev)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
platform_set_drvdata(pdev, NULL);
|
|
||||||
platform_device_unregister(pdev);
|
platform_device_unregister(pdev);
|
||||||
}
|
}
|
||||||
platform_driver_unregister(&tile_edac_mc_driver);
|
platform_driver_unregister(&tile_edac_mc_driver);
|
||||||
|
Loading…
Reference in New Issue
Block a user