X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fconfigs%2Fh2_p2_dbg_board.h;h=a4dea7dd2f09b8083f21d19b49af66cbebd7fa9b;hb=0a7bec7f991950da90c6ee6bc59f322abebccbb7;hp=6082d2ce52ac56f67a9d429797694f5730f7550a;hpb=1eaeb58e3c0022812b70d717bf1f458cfb48fdd3;p=u-boot diff --git a/include/configs/h2_p2_dbg_board.h b/include/configs/h2_p2_dbg_board.h index 6082d2ce52..a4dea7dd2f 100644 --- a/include/configs/h2_p2_dbg_board.h +++ b/include/configs/h2_p2_dbg_board.h @@ -31,7 +31,7 @@ #ifndef __INCLUDED_H2_P2_DBH_BOARD_H #define __INCLUDED_H2_P2_DBH_BOARD_H -#include +#include /* * The Debug board is designed to function with the P2 Sample, H2 @@ -108,14 +108,14 @@ static inline void set_led_state(int state) { static unsigned long hw_led_state = 0; - volatile unsigned short *led_address = 0x04000016; + volatile unsigned short *led_address = (volatile unsigned short *)0x04000016; hw_led_state = ((unsigned long)state); *((unsigned short *) (led_address)) = (unsigned short) (~hw_led_state & 0xFFFF); } -static inline void spin_up_leds() +static inline void spin_up_leds(void) { volatile int i, j, k;