We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f3b494 commit 3ada713Copy full SHA for 3ada713
drivers/mtd/nand/raw/tegra_nand.c
@@ -1181,7 +1181,7 @@ static int tegra_nand_probe(struct platform_device *pdev)
1181
pm_runtime_enable(&pdev->dev);
1182
err = pm_runtime_resume_and_get(&pdev->dev);
1183
if (err)
1184
- return err;
+ goto err_dis_pm;
1185
1186
err = reset_control_reset(rst);
1187
if (err) {
@@ -1215,6 +1215,8 @@ static int tegra_nand_probe(struct platform_device *pdev)
1215
err_put_pm:
1216
pm_runtime_put_sync_suspend(ctrl->dev);
1217
pm_runtime_force_suspend(ctrl->dev);
1218
+err_dis_pm:
1219
+ pm_runtime_disable(&pdev->dev);
1220
return err;
1221
}
1222
0 commit comments