]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: sparc: Fixup the compile warnings in sparc code
authorMarek Vasut <marex@denx.de>
Fri, 27 Jul 2012 08:04:34 +0000 (08:04 +0000)
committerTom Rini <trini@ti.com>
Tue, 18 Sep 2012 19:01:50 +0000 (12:01 -0700)
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Daniel Hellstrom <daniel@gaisler.com>
Cc: u-boot-dm@lists.denx.de
arch/sparc/cpu/leon2/interrupts.c
arch/sparc/cpu/leon3/interrupts.c
arch/sparc/lib/board.c

index 5149550e8f7c785b3605d06f83698ec495833a03..f707efd259ac0a42e430f47972b351bd925d3b27 100644 (file)
@@ -207,9 +207,9 @@ void do_irqinfo(cmd_tbl_t * cmdtp, bd_t * bd, int flag, int argc, char * const a
 
        for (irq = 0; irq < NR_IRQS; irq++) {
                if (irq_handlers[irq].handler != NULL) {
-                       printf("%02d  %08lx  %08lx  %ld\n", irq,
-                              (unsigned int)irq_handlers[irq].handler,
-                              (unsigned int)irq_handlers[irq].arg,
+                       printf("%02d  %p  %p  %d\n", irq,
+                              irq_handlers[irq].handler,
+                              irq_handlers[irq].arg,
                               irq_handlers[irq].count);
                }
        }
index 4138f9b673de19944b49d7370b5f52827e1d3563..4a3847de54cd50eec3cdc0fd1c361d8b9f1b1ea6 100644 (file)
@@ -209,9 +209,9 @@ void do_irqinfo(cmd_tbl_t * cmdtp, bd_t * bd, int flag, int argc, char * const a
 
        for (irq = 0; irq < NR_IRQS; irq++) {
                if (irq_handlers[irq].handler != NULL) {
-                       printf("%02d  %08lx  %08lx  %ld\n", irq,
-                              (unsigned int)irq_handlers[irq].handler,
-                              (unsigned int)irq_handlers[irq].arg,
+                       printf("%02d  %p  %p  %d\n", irq,
+                              irq_handlers[irq].handler,
+                              irq_handlers[irq].arg,
                               irq_handlers[irq].count);
                }
        }
index 7e48775dfe292049d8497566ea30aff2a7aa742c..6f33666265ea3ae6f1389a9e1d8343d3204bc76a 100644 (file)
@@ -166,7 +166,6 @@ char *str_init_seq_done = "\n\rInit sequence done...\r\n\r\n";
 void board_init_f(ulong bootflag)
 {
        bd_t *bd;
-       unsigned char *s;
        init_fnc_t **init_fnc_ptr;
        int j;