From aec7426483c0ac4682b83f26e347c93b64833c17 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Mon, 31 Aug 2009 18:53:31 +0000 Subject: use common get_system_type function SVN-Revision: 17455 --- target/linux/ramips/files/arch/mips/ralink/rt288x/rt288x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'target/linux/ramips/files/arch/mips/ralink/rt288x/rt288x.c') diff --git a/target/linux/ramips/files/arch/mips/ralink/rt288x/rt288x.c b/target/linux/ramips/files/arch/mips/ralink/rt288x/rt288x.c index 0c47df8141..e7c3787e1b 100644 --- a/target/linux/ramips/files/arch/mips/ralink/rt288x/rt288x.c +++ b/target/linux/ramips/files/arch/mips/ralink/rt288x/rt288x.c @@ -15,11 +15,10 @@ #include #include +#include #include #include -unsigned char rt288x_sys_type[RT288X_SYS_TYPE_LEN]; - unsigned long rt288x_cpu_freq; EXPORT_SYMBOL_GPL(rt288x_cpu_freq); @@ -39,7 +38,7 @@ void __init rt288x_detect_sys_type(void) n1 = rt288x_sysc_rr(SYSC_REG_CHIP_NAME1); id = rt288x_sysc_rr(SYSC_REG_CHIP_ID); - snprintf(rt288x_sys_type, RT288X_SYS_TYPE_LEN, + snprintf(ramips_sys_type, RAMIPS_SYS_TYPE_LEN, "Ralink %c%c%c%c%c%c%c%c id:%u rev:%u", (char) (n0 & 0xff), (char) ((n0 >> 8) & 0xff), (char) ((n0 >> 16) & 0xff), (char) ((n0 >> 24) & 0xff), -- cgit v1.2.3