From: Simon Glass Date: Fri, 12 Oct 2012 14:21:20 +0000 (+0000) Subject: x86: Change global data baudrate to int X-Git-Tag: v2013.01-rc1~112 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=55f97c1bfb3eb71e623576179fc0b995d0fd18ad;p=oweals%2Fu-boot.git x86: Change global data baudrate to int This doesn't need to be a long, so change it. Signed-off-by: Simon Glass Signed-off-by: Tom Rini --- diff --git a/arch/x86/include/asm/global_data.h b/arch/x86/include/asm/global_data.h index 6d29c0b9a3..bce999f41c 100644 --- a/arch/x86/include/asm/global_data.h +++ b/arch/x86/include/asm/global_data.h @@ -38,7 +38,7 @@ typedef struct global_data { unsigned long gd_addr; /* Location of Global Data */ bd_t *bd; unsigned long flags; - unsigned long baudrate; + unsigned int baudrate; unsigned long have_console; /* serial_init() was called */ #ifdef CONFIG_PRE_CONSOLE_BUFFER unsigned long precon_buf_idx; /* Pre-Console buffer index */ diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c index 656c565535..48cdd16dd2 100644 --- a/common/cmd_bdinfo.c +++ b/common/cmd_bdinfo.c @@ -439,7 +439,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) printf("ip_addr = %s\n", getenv("ipaddr")); print_mhz("ethspeed", bd->bi_ethspeed); #endif - printf("baudrate = %d bps\n", bd->bi_baudrate); + printf("baudrate = %u bps\n", bd->bi_baudrate); return 0; }