mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 22:28:00 +00:00
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>
This commit is contained in:
parent
9c78c4c38e
commit
b0084031f2
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue