mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
clocksource: sh_tmu: Remove unnecessary platform_set_drvdata()
The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han <[email protected]> Acked-by: Simon Horman <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]>
This commit is contained in:
parent
08cb8e4609
commit
5707f18c28
1 changed files with 0 additions and 1 deletions
|
|
@ -509,7 +509,6 @@ static int sh_tmu_probe(struct platform_device *pdev)
|
|||
ret = sh_tmu_setup(p, pdev);
|
||||
if (ret) {
|
||||
kfree(p);
|
||||
platform_set_drvdata(pdev, NULL);
|
||||
pm_runtime_idle(&pdev->dev);
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue