]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
avr32: Change bi_baudrate and global data baudrate to int
authorSimon Glass <sjg@chromium.org>
Fri, 12 Oct 2012 14:21:09 +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>
Acked-by: Andreas Bießmann <andreas.devel@googlemail.com>
Signed-off-by: Tom Rini <trini@ti.com>
arch/avr32/include/asm/global_data.h
arch/avr32/include/asm/u-boot.h
common/cmd_bdinfo.c

index 7878bb185a96d5375c01d56ff6b656e56e939e88..bf661e23be93d9384f03618aa34e1e3c1a279504 100644 (file)
@@ -33,7 +33,7 @@
 typedef        struct  global_data {
        bd_t            *bd;
        unsigned long   flags;
-       unsigned long   baudrate;
+       unsigned int    baudrate;
        unsigned long   stack_end;      /* highest stack address */
        unsigned long   have_console;   /* serial_init() was called */
 #ifdef CONFIG_PRE_CONSOLE_BUFFER
index 1d2959a2adabf03f17737474ba5b747240964e25..97bbbdef6df76b152d9769d918ba36b7ff663144 100644 (file)
@@ -23,7 +23,7 @@
 #define __ASM_U_BOOT_H__ 1
 
 typedef struct bd_info {
-       unsigned long           bi_baudrate;
+       unsigned int            bi_baudrate;
        unsigned char           bi_phy_id[4];
        unsigned long           bi_board_number;
        void                    *bi_boot_params;
index 698826c1f9cd4b4ca4cb286754befbf8f9c71765..138693ea481e83f598266e9781790cbbd769d023 100644 (file)
@@ -344,7 +344,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
        print_eth(0);
        printf("ip_addr     = %s\n", getenv("ipaddr"));
-       printf("baudrate    = %lu bps\n", bd->bi_baudrate);
+       printf("baudrate    = %u bps\n", bd->bi_baudrate);
 
        return 0;
 }