[U-Boot] [PATCH v3] AVR32: fix timer_init() function
Wolfgang Denk
wd at denx.de
Tue Dec 20 23:11:36 CET 2011
Dear Sven Schnelle,
In message <1443988412-13421-1-git-send-email-svens at stackframe.org> you wrote:
> timer_init() now returns an int (the error code) instead of void.
> This makes compilation fail with:
>
> interrupts.c:111: error: conflicting types for 'timer_init'
> /home/svens/u-boot/u-boot/include/common.h:246: error: previous declaration of 'timer_init' was here
> make[1]: *** [interrupts.o] Error 1
>
> Signed-off-by: Sven Schnelle <svens at stackframe.org>
> ---
> Changes for v3:
> - return -EINVAL regardless of the return value
> Changes for v2:
> - Coding style
>
> arch/avr32/cpu/interrupts.c | 5 +++--
> 1 files changed, 3 insertions(+), 2 deletions(-)
Applied, thanks. [Cherry-picked Anatolij's commit.]
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"The trouble with doing something right the first time is that nobody
appreciates how difficult it was." - Walt West
More information about the U-Boot
mailing list