linux/arch/avr32/boards
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
..
atngw100 video: atmel_lcdfb: pass the pdata as params 2013-09-27 09:26:20 +03:00
atstk1000 video: atmel_lcdfb: fix platform data struct 2013-09-27 09:26:19 +03:00
favr-32 avr32: favr-32: clk_round_rate() can return a zero upon error 2013-12-10 08:46:38 +01:00
hammerhead video: atmel_lcdfb: fix platform data struct 2013-09-27 09:26:19 +03:00
merisc video: atmel_lcdfb: fix platform data struct 2013-09-27 09:26:19 +03:00
mimc200 video: atmel_lcdfb: fix platform data struct 2013-09-27 09:26:19 +03:00