arm: sc8830: gpio: remove the redefined macro 87/153587/2
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 28 Sep 2017 11:45:18 +0000 (20:45 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 29 Sep 2017 09:58:06 +0000 (18:58 +0900)
Some macros are already defined in other header files.
Remove the redefined macro.

Change-Id: I62b5aa80d057cf5ac32798d796ece59890b6a21e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
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];