media: video: tegra: properly drop refs to sclk on cleanup

Change-Id: I7af31dc4cd1e2d7a4142f6265665a05ca4f41d15
Signed-off-by: Dima Zavin <dima@android.com>
This commit is contained in:
Dima Zavin
2010-11-15 11:22:31 -08:00
parent 3b3f0cbc77
commit 154526bf83

View File

@@ -624,6 +624,8 @@ void avp_svc_stop(struct avp_svc_info *avp_svc)
pr_info("%s: remote left clock '%s' on\n", __func__,
aclk->mod->name);
clk_disable(aclk->clk);
/* sclk was enabled once for every clock */
clk_disable(avp_svc->sclk);
}
aclk->refcnt = 0;
}