camsys_drv: fix compilation error on arm64
author黄涛 <huangtao@rock-chips.com>
Thu, 23 Oct 2014 09:03:17 +0000 (17:03 +0800)
committer黄涛 <huangtao@rock-chips.com>
Thu, 23 Oct 2014 09:03:17 +0000 (17:03 +0800)
drivers/media/video/rk_camsys/camsys_gpio.h
drivers/media/video/rk_camsys/camsys_internal.h
drivers/media/video/rk_camsys/camsys_soc_priv.c

index 6d6e81e1fe4ece5d128ddc8f0ddeb0c6d8045b86..3c282ea3f53eb123e9740988240b034e43e4ae53 100755 (executable)
@@ -1,8 +1,7 @@
 #ifndef __RKCAMSYS_GPIO_H__
 #define __RKCAMSYS_GPIO_H__
 
-//#include <mach/gpio.h>
-#include <asm/gpio.h>
+#include <linux/gpio.h>
 #if defined(CONFIG_ARCH_ROCKCHIP)
 #define RK30_PIN0_PA0 (0)
 #define NUM_GROUP      (32)
index c0c413b804842d8dc966c25ec162730e670cc11c..45550564697973eafc743b83d13143119e503536 100755 (executable)
@@ -28,6 +28,7 @@
 #include <linux/mutex.h>
 #include <linux/regulator/machine.h>
 #include <linux/log2.h>
+#include <linux/gpio.h>
 //#include <mach/io.h>
 //#include <mach/gpio.h>
 //#include <mach/iomux.h>
@@ -36,8 +37,6 @@
 #include <linux/rockchip/iomap.h>
 #include <linux/rockchip/grf.h>
 
-#include <asm/gpio.h>
-#include <asm/system.h>        
 #include <asm/uaccess.h>
 
 #include <linux/of.h>
index 7d62386ee2eaba82b06ae70b14cd6ac4cc0cdfbc..12b70ae98c46225f6fb1179b720757ce47350a19 100755 (executable)
@@ -5,6 +5,7 @@
 
 static camsys_soc_priv_t* camsys_soc_p;
 
+#ifdef CONFIG_ARM
 #include "camsys_soc_rk3288.c"
 
 static int camsys_rk3288_cfg (camsys_soc_cfg_t cfg_cmd, void* cfg_para)
@@ -62,6 +63,7 @@ static int camsys_rk3288_cfg (camsys_soc_cfg_t cfg_cmd, void* cfg_para)
 
 
 }
+#endif
 
 camsys_soc_priv_t* camsys_soc_get(void)
 {
@@ -81,8 +83,10 @@ int camsys_soc_init(void)
     }
 
     if (soc_is_rk3288()) {
+#ifdef CONFIG_ARM
         strlcpy(camsys_soc_p->name,"camsys_rk3288",31);
         camsys_soc_p->soc_cfg = camsys_rk3288_cfg;
+#endif
     } else {
         camsys_err("camsys isn't support soc: 0x%lx!",rockchip_soc_id);
         goto fail;