Skip to content

Commit 0411ea8

Browse files
digetxthierryreding
authored andcommitted
drm/tegra: dc: Release PM and RGB output when client's registration fails
Runtime PM and RGB output need to be released when host1x client registration fails. The releasing is missed in the code, let's correct it. Signed-off-by: Dmitry Osipenko <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent a858ac8 commit 0411ea8

File tree

1 file changed

+7
-1
lines changed
  • drivers/gpu/drm/tegra

1 file changed

+7
-1
lines changed

drivers/gpu/drm/tegra/dc.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2586,10 +2586,16 @@ static int tegra_dc_probe(struct platform_device *pdev)
25862586
if (err < 0) {
25872587
dev_err(&pdev->dev, "failed to register host1x client: %d\n",
25882588
err);
2589-
return err;
2589+
goto disable_pm;
25902590
}
25912591

25922592
return 0;
2593+
2594+
disable_pm:
2595+
pm_runtime_disable(&pdev->dev);
2596+
tegra_dc_rgb_remove(dc);
2597+
2598+
return err;
25932599
}
25942600

25952601
static int tegra_dc_remove(struct platform_device *pdev)

0 commit comments

Comments
 (0)