arm: sc8830: remove build warnings
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / cpu / armv7 / sc8830 / eic.c
old mode 100755 (executable)
new mode 100644 (file)
index 7b8a94a..65f5949
@@ -11,6 +11,7 @@
  *  it under the terms of the GNU General Public License version 2 as
  *  published by the Free Software Foundation.
  */
+#include <common.h>
 #include <asm/io.h>
 #include <asm/arch/sprd_reg.h>
 #include <asm/arch/sci_types.h>
@@ -22,9 +23,7 @@
 #define KERN_WARNING ""
 #define WARN(nmu, fmt...) printf(fmt)
 #define WARN_ON(num)
-#define BUG_ON(__cond__) if(__cond__) printf("%s line: %d bug on\n", __FUNCTION__, __LINE__)
 #define pr_err(fmt...) printf(fmt)
-#define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0]))
 #define pr_debug(fmt...) printf(fmt)
 
 //#define DEBUG
@@ -76,10 +75,6 @@ enum eic_die {
 
 static void __get_eic_base_info (u32 eic_id, struct eic_info *info)
 {
-       int i = 0;
-       u32 table_size = 0;
-       struct gpio_section  *section_table;
-
        if (eic_id>=SPRD_ADIE_EIC_START && eic_id<=SPRD_ADIE_EIC_END)
        {
                info->base_addr= SPRD_ANA_EIC_PHYS;
@@ -105,7 +100,6 @@ static void __get_eic_base_info (u32 eic_id, struct eic_info *info)
 
 static int __eic_get_pin_data (struct eic_info *info)
 {
-       u32 offset_addr = 0;
        u32 reg_addr = 0, reg_data;
 
        if (info->base_addr == INVALID_REG)
@@ -126,7 +120,6 @@ static int __eic_get_pin_data (struct eic_info *info)
 
 static int __eic_get_data_mask (struct eic_info *info)
 {
-       u32 offset_addr = 0;
        u32 reg_addr = 0, reg_data;
 
        if (info->base_addr == INVALID_REG)
@@ -150,7 +143,6 @@ static int __eic_get_data_mask (struct eic_info *info)
  */
 static void __eic_set_data_mask (struct eic_info *info, int b_on)
 {
-       u32 offset_addr = 0;
        u32 reg_addr = 0, reg_data;
 
        reg_addr = info->base_addr + EIC_MASK;
@@ -223,6 +215,7 @@ int sprd_eic_request(unsigned offset)
        return 0;
 }
 
+#if 0
 static void sprd_eic_free(unsigned offset)
 {
        unsigned eic_id = offset;
@@ -232,6 +225,7 @@ static void sprd_eic_free(unsigned offset)
        __eic_set_data_mask (&gpio_info, 0);
        return;
 }
+#endif
 
 void sprd_eic_init(void)
 {
@@ -241,7 +235,7 @@ void sprd_eic_init(void)
        ANA_REG_OR(ANA_REG_GLB_RTC_CLK_EN,    BIT_RTC_EIC_EN);
 }
 
-int get_volumn_down_status2()
+int get_volumn_down_status2(void)
 {
        int temp_cnt = 600;
        int status = 0;