Skip to contentSkip to conversation

ARM: S5PC100: remove useless ifdef in common.h

PATCH New Kukjin Kim 1 participant 2 messages Jan 19, 2013

Subsystems (3)
lore
Share & tools
lore

Kukjin Kim

author
#0 lore raw

PATCH 1/2 ARM: S5PC100: remove useless ifdef in common.h

The mach-s5pc100 should be complied with selecting CPU_S5PC100, so the 'ifdef' in common.h is not required.

---
 arch/arm/mach-s5pc100/common.h |    9 ---------
 1 file changed, 9 deletions(-)
arch/arm/mach-s5pc100/common.h +0 -9
index 9fbd3ae..c41f912 100644
@@ -20,18 +20,9 @@ void s5pc100_setup_clocks(void);
 
 void s5pc100_restart(char mode, const char *cmd);
 
-#ifdef CONFIG_CPU_S5PC100
-
 extern  int s5pc100_init(void);
 extern void s5pc100_map_io(void);
 extern void s5pc100_init_clocks(int xtal);
 extern void s5pc100_init_uarts(struct s3c2410_uartcfg *cfg, int no);
 
-#else
-#define s5pc100_init_clocks NULL
-#define s5pc100_init_uarts NULL
-#define s5pc100_map_io NULL
-#define s5pc100_init NULL
-#endif
-
 #endif /* __ARCH_ARM_MACH_S5PC100_COMMON_H */
Signature · 1 line
1.7.10.4
author
#1 lore raw

PATCH 2/2 ARM: S5PV210: remove useless ifdef in common.h

The mach-s5pv210 should be complied with selecting CPU_S5PV210, so the 'ifdef' in common.h is not required.

---
 arch/arm/mach-s5pv210/common.h |    9 ---------
 1 file changed, 9 deletions(-)
arch/arm/mach-s5pv210/common.h +0 -9
index 6ed2af5..0a1cc0ae 100644
@@ -20,18 +20,9 @@ void s5pv210_setup_clocks(void);
 
 void s5pv210_restart(char mode, const char *cmd);
 
-#ifdef CONFIG_CPU_S5PV210
-
 extern  int s5pv210_init(void);
 extern void s5pv210_map_io(void);
 extern void s5pv210_init_clocks(int xtal);
 extern void s5pv210_init_uarts(struct s3c2410_uartcfg *cfg, int no);
 
-#else
-#define s5pv210_init_clocks NULL
-#define s5pv210_init_uarts NULL
-#define s5pv210_map_io NULL
-#define s5pv210_init NULL
-#endif
-
 #endif /* __ARCH_ARM_MACH_S5PV210_COMMON_H */
Signature · 1 line
1.7.10.4