diff options
author | hauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-01-31 15:13:51 +0000 |
---|---|---|
committer | hauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-01-31 15:13:51 +0000 |
commit | 11288316a9c2df37b5b1cb33d5a0ba38593341fb (patch) | |
tree | ab25ece516472d772c19a3af6d372dc3e1b54572 /target/linux/amazon/files/arch | |
parent | 84e11fcd5aa6892de8ae5cbbee629d428c1afcab (diff) |
i[amazon] use SYS_HAS_EARLY_PRINTK instead of prom_printf
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19459 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/amazon/files/arch')
-rw-r--r-- | target/linux/amazon/files/arch/mips/amazon/prom.c | 18 | ||||
-rw-r--r-- | target/linux/amazon/files/arch/mips/amazon/setup.c | 7 |
2 files changed, 3 insertions, 22 deletions
diff --git a/target/linux/amazon/files/arch/mips/amazon/prom.c b/target/linux/amazon/files/arch/mips/amazon/prom.c index 28ef13b3d..3095fd50b 100644 --- a/target/linux/amazon/files/arch/mips/amazon/prom.c +++ b/target/linux/amazon/files/arch/mips/amazon/prom.c @@ -39,24 +39,6 @@ void prom_putchar(char c) amazon_writel(c, AMAZON_ASC_TBUF); } -void prom_printf(const char * fmt, ...) -{ - va_list args; - int l; - char *p, *buf_end; - char buf[1024]; - - va_start(args, fmt); - /* FIXME - hopefully i < sizeof(buf) */ - l = vsprintf(buf, fmt, args); - va_end(args); - buf_end = buf + l; - - for (p = buf; p < buf_end; p++) - prom_putchar(*p); -} - - void __init prom_init(void) { char **envp = (char **) fw_arg2; diff --git a/target/linux/amazon/files/arch/mips/amazon/setup.c b/target/linux/amazon/files/arch/mips/amazon/setup.c index af067853c..f3ebdbfbd 100644 --- a/target/linux/amazon/files/arch/mips/amazon/setup.c +++ b/target/linux/amazon/files/arch/mips/amazon/setup.c @@ -42,7 +42,6 @@ static unsigned int r4k_cur; /* required in arch/mips/kernel/kspd.c */ unsigned long cpu_khz; -extern void prom_printf(const char * fmt, ...); static void amazon_reboot_setup(void); /* the CPU clock rate - lifted from u-boot */ @@ -142,11 +141,11 @@ void __init plat_mem_setup(void) part_no = AMAZON_MCD_CHIPID_PART_NUMBER_GET(chipid); if(part_no == AMAZON_CHIPID_YANGTSE){ - prom_printf("Yangtse Version\n"); + printk("Yangtse Version\n"); } else if (part_no == AMAZON_CHIPID_STANDARD) { - prom_printf(SYSTEM_MODEL_NAME "\n"); + printk(SYSTEM_MODEL_NAME "\n"); } else { - prom_printf("unknown version %8x\n",part_no); + printk("unknown version %8x\n",part_no); } amazon_reboot_setup(); |