aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>2016-07-03 02:18:57 -0400
committerThierry Reding <treding@nvidia.com>2016-11-07 07:01:42 -0500
commit87ba3e15fb6e94d8dcce838b5de71814b2d1a768 (patch)
treecb68c052c8dee3b3010450b5133364e87e368970
parent9376cad2073d2c122864754ea5f80025c8507b0b (diff)
drm/tegra: Fix error handling
It is likely that checking 'gr3d->clk_secondary' instead of 'gr3d->clk' is expected here. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--drivers/gpu/drm/tegra/gr3d.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/tegra/gr3d.c b/drivers/gpu/drm/tegra/gr3d.c
index 0b3f2b977ba0..13f0d1b7cd98 100644
--- a/drivers/gpu/drm/tegra/gr3d.c
+++ b/drivers/gpu/drm/tegra/gr3d.c
@@ -268,9 +268,9 @@ static int gr3d_probe(struct platform_device *pdev)
268 268
269 if (of_device_is_compatible(np, "nvidia,tegra30-gr3d")) { 269 if (of_device_is_compatible(np, "nvidia,tegra30-gr3d")) {
270 gr3d->clk_secondary = devm_clk_get(&pdev->dev, "3d2"); 270 gr3d->clk_secondary = devm_clk_get(&pdev->dev, "3d2");
271 if (IS_ERR(gr3d->clk)) { 271 if (IS_ERR(gr3d->clk_secondary)) {
272 dev_err(&pdev->dev, "cannot get secondary clock\n"); 272 dev_err(&pdev->dev, "cannot get secondary clock\n");
273 return PTR_ERR(gr3d->clk); 273 return PTR_ERR(gr3d->clk_secondary);
274 } 274 }
275 275
276 gr3d->rst_secondary = devm_reset_control_get(&pdev->dev, 276 gr3d->rst_secondary = devm_reset_control_get(&pdev->dev,