]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/davinci/sonata/dv_board.c
Big white-space cleanup.
[karo-tx-uboot.git] / board / davinci / sonata / dv_board.c
index 7b0a459fa3198703f9a3fa150202aa5b314cd2ad..e8665e5d3a4eece26617ff286c79d6970e94ce87 100644 (file)
@@ -31,6 +31,8 @@
 
 #define MACH_TYPE_SONATA               1254
 
+DECLARE_GLOBAL_DATA_PTR;
+
 extern void    i2c_init(int speed, int slaveaddr);
 extern void    timer_init(void);
 extern int     eth_hw_init(void);
@@ -71,7 +73,7 @@ void lpsc_on(unsigned int id)
                (id == DAVINCI_LPSC_McBSP) ||
                (id == DAVINCI_LPSC_GPIO)
           )
-               *mdctl |= 0x200;
+               *mdctl |= 0x200;
 
        REG(PSC_PTCMD) = 0x01;
 
@@ -115,8 +117,6 @@ void dsp_on(void)
 
 int board_init(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        /* arch number of the board */
        gd->bd->bi_arch_number = MACH_TYPE_SONATA;
 
@@ -182,7 +182,7 @@ int misc_init_r (void)
                        tmp[0] &= buf[i];
 
                if ((tmp[0] != 0xff) && (getenv("ethaddr") == NULL)) {
-                       sprintf((char *)&tmp[0], "%02hhx:%02hhx:%02hhx:%02hhx:%02hhx:%02hhx",
+                       sprintf((char *)&tmp[0], "%02x:%02x:%02x:%02x:%02x:%02x",
                                buf[0], buf[1], buf[2], buf[3], buf[4], buf[5]);
                        setenv("ethaddr", (char *)&tmp[0]);
                }
@@ -199,8 +199,6 @@ int misc_init_r (void)
 
 int dram_init(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
        gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;