diff options
author | Christophe Jaillet <christophe.jaillet@wanadoo.fr> | 2016-07-03 08:18:57 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2016-11-07 13:01:42 +0100 |
commit | 87ba3e15fb6e94d8dcce838b5de71814b2d1a768 (patch) | |
tree | cb68c052c8dee3b3010450b5133364e87e368970 /drivers/gpu/drm/tegra | |
parent | 9376cad2073d2c122864754ea5f80025c8507b0b (diff) | |
download | linux-stable-87ba3e15fb6e94d8dcce838b5de71814b2d1a768.tar.gz linux-stable-87ba3e15fb6e94d8dcce838b5de71814b2d1a768.tar.bz2 linux-stable-87ba3e15fb6e94d8dcce838b5de71814b2d1a768.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/tegra')
-rw-r--r-- | drivers/gpu/drm/tegra/gr3d.c | 4 |
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) if (of_device_is_compatible(np, "nvidia,tegra30-gr3d")) { gr3d->clk_secondary = devm_clk_get(&pdev->dev, "3d2"); - if (IS_ERR(gr3d->clk)) { + if (IS_ERR(gr3d->clk_secondary)) { dev_err(&pdev->dev, "cannot get secondary clock\n"); - return PTR_ERR(gr3d->clk); + return PTR_ERR(gr3d->clk_secondary); } gr3d->rst_secondary = devm_reset_control_get(&pdev->dev, |