linux-sg2042/arch/avr32/boards/favr-32
Paul Walmsley 464b500e37 avr32: favr-32: clk_round_rate() can return a zero upon error
Treat both negative and zero return values from clk_round_rate() as
errors.  This is needed since subsequent patches will convert
clk_round_rate()'s return value to be an unsigned type, rather than a
signed type, since some clock sources can generate rates higher than
(2^31)-1 Hz.

Eventually, when calling clk_round_rate(), only a return value of zero
will be considered a error.  All other values will be considered valid
rates.  The comparison against values less than 0 is kept to preserve
the correct behavior in the meantime.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Håvard Skinnemoen <hskinnemoen@gmail.com>
Cc: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
2013-12-10 08:46:38 +01:00
..
Kconfig avr32: add support for EarthLCD Favr-32 board 2008-10-13 16:01:18 +02:00
Makefile avr32: add support for EarthLCD Favr-32 board 2008-10-13 16:01:18 +02:00
flash.c avr32: favr-32 build fix 2008-12-18 16:22:13 +01:00
setup.c avr32: favr-32: clk_round_rate() can return a zero upon error 2013-12-10 08:46:38 +01:00