1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

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
This commit is contained in:
hauke
2010-01-31 15:13:51 +00:00
parent 84e11fcd5a
commit 11288316a9
3 changed files with 3 additions and 30 deletions

View File

@@ -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;