From 154526bf83b2acca83326805c3bcf35db3596911 Mon Sep 17 00:00:00 2001 From: Dima Zavin Date: Mon, 15 Nov 2010 11:22:31 -0800 Subject: [PATCH] media: video: tegra: properly drop refs to sclk on cleanup Change-Id: I7af31dc4cd1e2d7a4142f6265665a05ca4f41d15 Signed-off-by: Dima Zavin --- drivers/media/video/tegra/avp/avp_svc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/video/tegra/avp/avp_svc.c b/drivers/media/video/tegra/avp/avp_svc.c index ea593f7d3704..6daeed10e81e 100644 --- a/drivers/media/video/tegra/avp/avp_svc.c +++ b/drivers/media/video/tegra/avp/avp_svc.c @@ -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; } -- 2.34.1