OSDN Git Service

clk: versatile: Remove WARNs in ->round_rate()
authorBrian Starkey <brian.starkey@arm.com>
Mon, 13 Nov 2017 15:27:51 +0000 (15:27 +0000)
committerStephen Boyd <sboyd@kernel.org>
Fri, 16 Mar 2018 22:31:16 +0000 (15:31 -0700)
commita1d803d78b9e1ff82a0e5ef9d81202b23377f9e0
tree9600f3badded5e293782461fd6bb980716aba5f8
parentaff2dc6b49fc642906eaa5523c5227c50fd77c50
clk: versatile: Remove WARNs in ->round_rate()

clk_round_rate() is intended to be used to round a given clock rate to
the closest one achievable by the actual clock. This implies that the
input to clk_round_rate() is expected to be unachievable - and such
cases shouldn't be treated as exceptional.

To reflect this, remove the WARN_ONs which trigger when an unachievable
clock rate is passed to vexpress_osc_round_rate().

Reported-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Brian Starkey <brian.starkey@arm.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/versatile/clk-vexpress-osc.c