Skip to contentSkip to conversation

Kirkwood: Remove code duplication in QNAP setup files

PATCH New Martin Michlmayr 1 participant 1 message Nov 5, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Kirkwood: Remove code duplication in QNAP setup files

Remove the code duplication found in the setup files of TS-219 and TS-41x.

arch/arm/mach-kirkwood/Makefile +2 -2
index 0c79ced..9f2f67b 100644
@@ -5,8 +5,8 @@ obj-$(CONFIG_MACH_RD88F6192_NAS)	+= rd88f6192-nas-setup.o
 obj-$(CONFIG_MACH_RD88F6281)		+= rd88f6281-setup.o
 obj-$(CONFIG_MACH_MV88F6281GTW_GE)	+= mv88f6281gtw_ge-setup.o
 obj-$(CONFIG_MACH_SHEEVAPLUG)		+= sheevaplug-setup.o
-obj-$(CONFIG_MACH_TS219)		+= ts219-setup.o
-obj-$(CONFIG_MACH_TS41X)		+= ts41x-setup.o
+obj-$(CONFIG_MACH_TS219)		+= ts219-setup.o tsx1x-common.o
+obj-$(CONFIG_MACH_TS41X)		+= ts41x-setup.o tsx1x-common.o
 obj-$(CONFIG_MACH_OPENRD_BASE)		+= openrd_base-setup.o
 
 obj-$(CONFIG_CPU_IDLE)			+= cpuidle.o
arch/arm/mach-kirkwood/ts219-setup.c +3 -102

139 lines not on this page · raw message

arch/arm/mach-kirkwood/ts41x-setup.c +3 -102

139 lines not on this page · raw message

arch/arm/mach-kirkwood/tsx1x-common.c new file +113 -0

113 lines not on this page · raw message

arch/arm/mach-kirkwood/tsx1x-common.h new file +7 -0
new file mode 100644
index 0000000..9a59296
@@ -0,0 +1,7 @@
+#ifndef __ARCH_KIRKWOOD_TSX1X_COMMON_H
+#define __ARCH_KIRKWOOD_TSX1X_COMMON_H
+
+extern void qnap_tsx1x_register_flash(void);
+extern void qnap_tsx1x_power_off(void);
+
+#endif
Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/