summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/omap3isp/isph3a_aewb.c
diff options
context:
space:
mode:
authorLaurent Pinchart2012-05-25 13:35:10 +0200
committerMauro Carvalho Chehab2012-08-11 20:54:34 +0200
commitbe9a1b98f4796532c77babe211a6980e81e47b20 (patch)
tree2ea8cc5335ed061cbdb379b8e5567aa236fa3723 /drivers/media/video/omap3isp/isph3a_aewb.c
parent[media] vivi: zero fmt.pix.priv as per spec (diff)
downloadkernel-qcow2-linux-be9a1b98f4796532c77babe211a6980e81e47b20.tar.gz
kernel-qcow2-linux-be9a1b98f4796532c77babe211a6980e81e47b20.tar.xz
kernel-qcow2-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/isph3a_aewb.c')
-rw-r--r--drivers/media/video/omap3isp/isph3a_aewb.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/media/video/omap3isp/isph3a_aewb.c b/drivers/media/video/omap3isp/isph3a_aewb.c
index a3c76bf18175..036e9961d027 100644
--- a/drivers/media/video/omap3isp/isph3a_aewb.c
+++ b/drivers/media/video/omap3isp/isph3a_aewb.c
@@ -93,17 +93,11 @@ static void h3a_aewb_enable(struct ispstat *aewb, int enable)
if (enable) {
isp_reg_set(aewb->isp, OMAP3_ISP_IOMEM_H3A, ISPH3A_PCR,
ISPH3A_PCR_AEW_EN);
- /* This bit is already set if AF is enabled */
- if (aewb->isp->isp_af.state != ISPSTAT_ENABLED)
- isp_reg_set(aewb->isp, OMAP3_ISP_IOMEM_MAIN, ISP_CTRL,
- ISPCTRL_H3A_CLK_EN);
+ omap3isp_subclk_enable(aewb->isp, OMAP3_ISP_SUBCLK_AEWB);
} else {
isp_reg_clr(aewb->isp, OMAP3_ISP_IOMEM_H3A, ISPH3A_PCR,
ISPH3A_PCR_AEW_EN);
- /* This bit can't be cleared if AF is enabled */
- if (aewb->isp->isp_af.state != ISPSTAT_ENABLED)
- isp_reg_clr(aewb->isp, OMAP3_ISP_IOMEM_MAIN, ISP_CTRL,
- ISPCTRL_H3A_CLK_EN);
+ omap3isp_subclk_disable(aewb->isp, OMAP3_ISP_SUBCLK_AEWB);
}
}