arm: sc8830: gpio: remove the redefined macro
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / cpu / armv7 / sc8830 / gpio.c
index 2c5fe92..3ea3b1e 100644 (file)
 #include <asm/arch/asm_generic_gpio.h>
 #include <asm/arch/chip_drv_common_io.h>
 
-#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
-
-
-#ifdef DEBUG
-#define GPIO_DBG(fmt...) pr_debug(fmt)
-#else
-#define GPIO_DBG(fmt...)
-#endif
-
 #ifndef GPO_TRI
 #define GPO_TRI            0xFFFF
 #endif
@@ -57,7 +40,6 @@ struct gpio_irq_map {
        int irq_num;
 };
 
-#define GPIO_INVALID_ID 0xffff
 #define INVALID_REG            (~(u32)0)
 
 //static struct gpio_irq_map gpio_irq_table[NR_GPIO_IRQS];