From: Sakari Ailus <[EMAIL PROTECTED]>
Date: Wed, 22 Oct 2008 18:11:42 +0300
Subject: [PATCH] OMAP3ISP: Don't drop clocks before MMU unmapping
Signed-off-by: Sakari Ailus <[EMAIL PROTECTED]>
Signed-off-by: Sergio Aguirre <[EMAIL PROTECTED]>
---
drivers/media/video/isp/isp.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Index: omapkernel/drivers/media/video/isp/isp.c
===================================================================
--- omapkernel.orig/drivers/media/video/isp/isp.c
+++ omapkernel/drivers/media/video/isp/isp.c
@@ -2355,6 +2355,9 @@ int isp_put(void)
if (--isp_obj.ref_count == 0) {
isp_save_ctx();
off_mode = 1;
+#if ISP_WORKAROUND
+ isp_buf_free();
+#endif
isp_release_resources();
ispmodule_obj.isp_pipeline = 0;
clk_disable(isp_obj.cam_ick);
@@ -2365,9 +2368,6 @@ int isp_put(void)
clk_put(isp_obj.csi2_fck);
memset(&ispcroprect, 0, sizeof(ispcroprect));
memset(&cur_rect, 0, sizeof(cur_rect));
-#if ISP_WORKAROUND
- isp_buf_free();
-#endif
}
mutex_unlock(&(isp_obj.isp_mutex));
DPRINTK_ISPCTRL("isp_put: new %d\n", isp_obj.ref_count);
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html