Skip to content

Commit 4cad2a5

Browse files
tomeuvrobherring
authored andcommitted
panfrost: Properly undo pm_runtime_enable when deferring a probe
When deferring the probe because of a missing regulator, we were calling pm_runtime_disable even if pm_runtime_enable wasn't called. Move the call to pm_runtime_disable to the right place. Fixes: 6354307 ("drm/panfrost: Rework runtime PM initialization") Reported-by: Chen-Yu Tsai <wens@csie.org> Cc: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by: Robin Murphy <robin.murphy@arm.com> Reviewed-by: Steven Price <steven.price@arm.com> Signed-off-by: Rob Herring <robh@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20191023122157.32067-1-tomeu.vizoso@collabora.com
1 parent 8ae501e commit 4cad2a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/gpu/drm/panfrost/panfrost_drv.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,11 +556,11 @@ static int panfrost_probe(struct platform_device *pdev)
556556
return 0;
557557

558558
err_out2:
559+
pm_runtime_disable(pfdev->dev);
559560
panfrost_devfreq_fini(pfdev);
560561
err_out1:
561562
panfrost_device_fini(pfdev);
562563
err_out0:
563-
pm_runtime_disable(pfdev->dev);
564564
drm_dev_put(ddev);
565565
return err;
566566
}

0 commit comments

Comments
 (0)