diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-10-21 07:38:34 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2013-10-31 09:55:47 +0100 |
commit | b0084031f2c68ba65e3a1776cf4f8a23448afa41 (patch) | |
tree | 83aa26e7d81e65dd101ef543c6350478fefb71e9 /drivers/gpu/drm/tegra | |
parent | gpu: host1x: Disable clock on probe failure (diff) | |
download | linux-b0084031f2c68ba65e3a1776cf4f8a23448afa41.tar.xz linux-b0084031f2c68ba65e3a1776cf4f8a23448afa41.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/tegra')
-rw-r--r-- | drivers/gpu/drm/tegra/gr2d.c | 1 |
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) err = host1x_client_register(&gr2d->client.base); if (err < 0) { dev_err(dev, "failed to register host1x client: %d\n", err); + clk_disable_unprepare(gr2d->clk); return err; } |