m68k: Change bi_baudrate and global data baudrate to int
authorSimon Glass <sjg@chromium.org>
Fri, 12 Oct 2012 14:21:10 +0000 (14:21 +0000)
committerTom Rini <trini@ti.com>
Fri, 19 Oct 2012 22:25:44 +0000 (15:25 -0700)
These don't need to be longs, so change them.

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

index cd55b83c525ba269029614638a8b77ed6224a795..0cdb11cf99eeccce75df5d9482c3e4a066a4b3af 100644 (file)
@@ -34,7 +34,7 @@
 typedef        struct  global_data {
        bd_t            *bd;
        unsigned long   flags;
-       unsigned long   baudrate;
+       unsigned int    baudrate;
        unsigned long   cpu_clk;        /* CPU clock in Hz!             */
        unsigned long   bus_clk;
 #ifdef CONFIG_PCI
index 973c9ee09854f7dc8a5344e7a6f355ec3ab9d515..8c7c554a460b7ad282ba4b644f132d1fa2398191 100644 (file)
@@ -58,7 +58,7 @@ typedef struct bd_info {
        unsigned long bi_vcofreq;       /* vco Freq in MHz */
        unsigned long bi_flbfreq;       /* Flexbus Freq in MHz */
 #endif
-       unsigned long bi_baudrate;      /* Console Baudrate */
+       unsigned int bi_baudrate;       /* Console Baudrate */
 } bd_t;
 
 #endif                         /* __ASSEMBLY__ */
index 138693ea481e83f598266e9781790cbbd769d023..d6f14ab533fbe7400d3b5b6a176a6ef209884de0 100644 (file)
@@ -277,7 +277,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
        printf("ip_addr     = %s\n", getenv("ipaddr"));
 #endif
-       printf("baudrate    = %ld bps\n", bd->bi_baudrate);
+       printf("baudrate    = %u bps\n", bd->bi_baudrate);
 
        return 0;
 }