From: Wei Yongjun Date: Mon, 21 Oct 2013 05:38:34 +0000 (+0800) Subject: drm/tegra: Disable clock on probe failure X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b0084031f2c68ba65e3a1776cf4f8a23448afa41;p=linux-beck.git 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 Reviewed-by: Terje Bergstrom Signed-off-by: Thierry Reding --- 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; }