summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/omap3isp/isphist.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-05-25 13:35:10 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-08-11 20:54:34 +0200
commitbe9a1b98f4796532c77babe211a6980e81e47b20 (patch)
tree2ea8cc5335ed061cbdb379b8e5567aa236fa3723 /drivers/media/video/omap3isp/isphist.c
parent[media] vivi: zero fmt.pix.priv as per spec (diff)
downloadlinux-be9a1b98f4796532c77babe211a6980e81e47b20.tar.xz
linux-be9a1b98f4796532c77babe211a6980e81e47b20.zip
[media] omap3isp: Don't access ISP_CTRL directly in the statistics modules
Use the existing omap3isp_subclk_enable() and omap3isp_subclk_disable() functions instead. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/omap3isp/isphist.c')
-rw-r--r--drivers/media/video/omap3isp/isphist.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/media/video/omap3isp/isphist.c b/drivers/media/video/omap3isp/isphist.c
index 1163907bcddc..d1a8dee5e1ca 100644
--- a/drivers/media/video/omap3isp/isphist.c
+++ b/drivers/media/video/omap3isp/isphist.c
@@ -167,13 +167,11 @@ static void hist_enable(struct ispstat *hist, int enable)
if (enable) {
isp_reg_set(hist->isp, OMAP3_ISP_IOMEM_HIST, ISPHIST_PCR,
ISPHIST_PCR_ENABLE);
- isp_reg_set(hist->isp, OMAP3_ISP_IOMEM_MAIN, ISP_CTRL,
- ISPCTRL_HIST_CLK_EN);
+ omap3isp_subclk_enable(hist->isp, OMAP3_ISP_SUBCLK_HIST);
} else {
isp_reg_clr(hist->isp, OMAP3_ISP_IOMEM_HIST, ISPHIST_PCR,
ISPHIST_PCR_ENABLE);
- isp_reg_clr(hist->isp, OMAP3_ISP_IOMEM_MAIN, ISP_CTRL,
- ISPCTRL_HIST_CLK_EN);
+ omap3isp_subclk_disable(hist->isp, OMAP3_ISP_SUBCLK_HIST);
}
}