[PATCH -next] drm/tegra: add missing clk_disable_unprepare() on error in gr2d_probe()

Wei Yongjun weiyj.lk at gmail.com
Mon Oct 21 07:38:34 CEST 2013


From: Wei Yongjun <yongjun_wei at trendmicro.com.cn>

Add the missing clk_disable_unprepare() before return
from gr2d_probe() in the error handling case.

Signed-off-by: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
---
 drivers/gpu/drm/tegra/gr2d.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/tegra/gr2d.c b/drivers/gpu/drm/tegra/gr2d.c
index 73b79ba..7f4eb11 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;
 	}
 



More information about the dri-devel mailing list