mt9m111 video4linux driver port to 2.6
Signed-off-by: Daniel Ribeiro <drwyrm@gmail.com>
Index: linux-2.6.16/drivers/media/video/mt9m111.c
===================================================================
--- linux-2.6.16.orig/drivers/media/video/mt9m111.c	2007-03-17 21:09:21.000000000 -0300
+++ linux-2.6.16/drivers/media/video/mt9m111.c	2007-03-17 21:14:58.000000000 -0300
@@ -1,4 +1,7 @@
- 
+/*
+ * FIXME: Cant we release this as GPL???
+ * 		Motorola have not released this on opensource.motorola.com
+ */
 /*================================================================================
                                                                                
                       Header Name: mt9m111.c
@@ -15,6 +18,7 @@
 Author                 Date          Number     Description of Changes
 ----------------   ------------    ----------   -------------------------
 Ma Zhiqiang          06/29/2004                 Change for auto-detect
+Daniel Ribeiro	     17/04/2007			Port to Linux 2.6
 ==================================================================================
                                  INCLUDE FILES
 ==================================================================================*/
@@ -47,6 +51,7 @@
 #include <linux/pm.h>
 #include <linux/poll.h>
 #include <linux/wait.h>
+#include <asm/arch/pxa-regs.h>
 
 #include "camera.h"
 #include "mt9m111.h"
@@ -184,7 +189,7 @@
      * AP Kernel camera driver: set TCMM_EN to low when camera is running and TCMM_EN to high when camera stops.
      * BP Software: if TCMM_EN is low, BP do not shut off 26M clock ,but BP can sleep itself.*/ 
 
-    set_GPIO_mode(99|GPIO_OUT);//It's GPIO99 for the "TCMM_EN"
+    pxa_gpio_mode(99|GPIO_OUT);//It's GPIO99 for the "TCMM_EN"
     GPCR(99) = GPIO_bit(99);
     
     cam_ctx->sensor_type = CAMERA_TYPE_MT9M111;
@@ -239,7 +244,7 @@
      * AP Kernel camera driver: set TCMM_EN to low when camera is running and TCMM_EN to high when camera stops.
      * BP Software: if TCMM_EN is low, BP do not shut off 26M clock ,but BP can sleep itself.*/ 
 
-    set_GPIO_mode(99|GPIO_OUT);//It's GPIO99 for the "TCMM_EN"
+    pxa_gpio_mode(99|GPIO_OUT);//It's GPIO99 for the "TCMM_EN"
     GPSR(99) = GPIO_bit(99);
 
     return 0;

