diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-08-31 18:53:31 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-08-31 18:53:31 +0000 |
commit | 4b46d0a5c99ec01322cbd017e717b74328b628ac (patch) | |
tree | 1030f66d8c993028d3f52bff663fc35b947d3278 /target/linux/ramips/files/arch/mips/ralink/rt288x | |
parent | 5b179ca3a0e92b42e2957d322e7d9871bad8797c (diff) | |
download | upstream-4b46d0a5c99ec01322cbd017e717b74328b628ac.tar.gz upstream-4b46d0a5c99ec01322cbd017e717b74328b628ac.tar.bz2 upstream-4b46d0a5c99ec01322cbd017e717b74328b628ac.zip |
[ramips] use common get_system_type function
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17455 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files/arch/mips/ralink/rt288x')
-rw-r--r-- | target/linux/ramips/files/arch/mips/ralink/rt288x/rt288x.c | 5 | ||||
-rw-r--r-- | target/linux/ramips/files/arch/mips/ralink/rt288x/setup.c | 7 |
2 files changed, 3 insertions, 9 deletions
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 <linux/init.h> #include <linux/module.h> +#include <asm/mach-ralink/common.h> #include <asm/mach-ralink/rt288x.h> #include <asm/mach-ralink/rt288x_regs.h> -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), diff --git a/target/linux/ramips/files/arch/mips/ralink/rt288x/setup.c b/target/linux/ramips/files/arch/mips/ralink/rt288x/setup.c index 920f44ae41..05184f0bd8 100644 --- a/target/linux/ramips/files/arch/mips/ralink/rt288x/setup.c +++ b/target/linux/ramips/files/arch/mips/ralink/rt288x/setup.c @@ -73,11 +73,6 @@ static void __init rt288x_early_serial_setup(void) err); } -const char *get_system_type(void) -{ - return rt288x_sys_type; -} - unsigned int __cpuinit get_c0_compare_irq(void) { return CP0_LEGACY_COMPARE_IRQ; @@ -91,7 +86,7 @@ void __init ramips_soc_setup(void) rt288x_detect_sys_type(); rt288x_detect_sys_freq(); - printk(KERN_INFO "%s running at %lu.%02lu MHz\n", get_system_type(), + printk(KERN_INFO "%s running at %lu.%02lu MHz\n", ramips_sys_type, rt288x_cpu_freq / 1000000, (rt288x_cpu_freq % 1000000) * 100 / 1000000); |