x86: Change global data baudrate to int
authorSimon Glass <sjg@chromium.org>
Fri, 12 Oct 2012 14:21:20 +0000 (14:21 +0000)
committerTom Rini <trini@ti.com>
Fri, 19 Oct 2012 22:25:46 +0000 (15:25 -0700)
This doesn't need to be a long, so change it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@ti.com>
arch/x86/include/asm/global_data.h
common/cmd_bdinfo.c

index 6d29c0b9a31376cf5d5195f4fe5bfdb0f6673f19..bce999f41ce3ee1f80ac1b03a36eac5f8ff64ee4 100644 (file)
@@ -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 */
index 656c56553537c07fe5de7ed245952698def6a317..48cdd16dd21081c7890ff54513cec4701be24411 100644 (file)
@@ -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;
 }