projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c78c4c
)
drm/tegra: Disable clock on probe failure
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Mon, 21 Oct 2013 05:38:34 +0000
(13:38 +0800)
committer
Thierry Reding
<treding@nvidia.com>
Thu, 31 Oct 2013 08:55:47 +0000
(09:55 +0100)
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>
drivers/gpu/drm/tegra/gr2d.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/tegra/gr2d.c
b/drivers/gpu/drm/tegra/gr2d.c
index 73b79bad613e500c85f46b807ad20f63224449e1..7f4eb110aa8570733cae3a51fe65209f99925574 100644
(file)
--- 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;
}