diff options
author | Paul Walmsley <pwalmsley@nvidia.com> | 2013-12-09 18:35:24 -0800 |
---|---|---|
committer | Hans-Christian Egtvedt <hegtvedt@cisco.com> | 2013-12-10 08:46:38 +0100 |
commit | 464b500e37a588be69ed9c9c21bca62a578ca66c (patch) | |
tree | 539049f9f53f1c9b0608069a6722f81d70dcf44a /arch/mips/sgi-ip27 | |
parent | 7155530d9eb692994d208836e4965da06b17c99d (diff) | |
download | blackbird-op-linux-464b500e37a588be69ed9c9c21bca62a578ca66c.tar.gz blackbird-op-linux-464b500e37a588be69ed9c9c21bca62a578ca66c.zip |
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>
Diffstat (limited to 'arch/mips/sgi-ip27')
0 files changed, 0 insertions, 0 deletions