Commit a5127a2d authored by Thierry Reding's avatar Thierry Reding

drm/tegra: sor: Suspend on clock registration failure

Make sure the SOR module is suspenden after we fail to register the SOR
pad output clock.
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 033ccdb7
...@@ -3921,15 +3921,16 @@ static int tegra_sor_probe(struct platform_device *pdev) ...@@ -3921,15 +3921,16 @@ static int tegra_sor_probe(struct platform_device *pdev)
if (!sor->clk_pad) { if (!sor->clk_pad) {
char *name; char *name;
err = host1x_client_resume(&sor->client); name = devm_kasprintf(sor->dev, GFP_KERNEL, "sor%u_pad_clkout",
if (err < 0) { sor->index);
dev_err(sor->dev, "failed to resume: %d\n", err); if (!name) {
err = -ENOMEM;
goto remove; goto remove;
} }
name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "sor%u_pad_clkout", sor->index); err = host1x_client_resume(&sor->client);
if (!name) { if (err < 0) {
err = -ENOMEM; dev_err(sor->dev, "failed to resume: %d\n", err);
goto remove; goto remove;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment