mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 16:49:22 +00:00
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 <digetx@gmail.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
parent
a858ac8f40
commit
0411ea89a6
1 changed files with 7 additions and 1 deletions
|
@ -2586,10 +2586,16 @@ static int tegra_dc_probe(struct platform_device *pdev)
|
|||
if (err < 0) {
|
||||
dev_err(&pdev->dev, "failed to register host1x client: %d\n",
|
||||
err);
|
||||
return err;
|
||||
goto disable_pm;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
disable_pm:
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
tegra_dc_rgb_remove(dc);
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
static int tegra_dc_remove(struct platform_device *pdev)
|
||||
|
|
Loading…
Reference in a new issue