aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-10-21 01:38:34 -0400
committerThierry Reding <treding@nvidia.com>2013-10-31 04:55:47 -0400
commitb0084031f2c68ba65e3a1776cf4f8a23448afa41 (patch)
tree83aa26e7d81e65dd101ef543c6350478fefb71e9
parent9c78c4c38e2c1889f2514c3c76ef190b99f2524a (diff)
drm/tegra: Disable clock on probe failure
Add a missing clk_disable_unprepare() before returning from the driver's .probe() function on error. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--drivers/gpu/drm/tegra/gr2d.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/gr2d.c b/drivers/gpu/drm/tegra/gr2d.c
index 73b79bad613e..7f4eb110aa85 100644
--- a/drivers/gpu/drm/tegra/gr2d.c
+++ b/drivers/gpu/drm/tegra/gr2d.c
@@ -186,6 +186,7 @@ static int gr2d_probe(struct platform_device *pdev)
186 err = host1x_client_register(&gr2d->client.base); 186 err = host1x_client_register(&gr2d->client.base);
187 if (err < 0) { 187 if (err < 0) {
188 dev_err(dev, "failed to register host1x client: %d\n", err); 188 dev_err(dev, "failed to register host1x client: %d\n", err);
189 clk_disable_unprepare(gr2d->clk);
189 return err; 190 return err;
190 } 191 }
191 192