clk: sunxi-ng: Call divider_round_rate if we only have a single parent
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 24 Jan 2017 09:41:18 +0000 (10:41 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 27 Jan 2017 10:05:34 +0000 (11:05 +0100)
commitbf3be2caa593e1e35ff8d8d5b32c2c9a6a85e1d8
treec649d1876d99401b1fea9ecc30109f9705c2e6fa
parent6b48644b1d29d78c146bc94814afe01625dd0f0d
clk: sunxi-ng: Call divider_round_rate if we only have a single parent

The divider_get_val function that is used in our determine_rate callback
doesn't try to change the parent rate at all, while clk_divider_bestdiv,
used in divider_round_rate, does.

If we have a single parent, call divider_round_rate.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: Chen-Yu Tsai <wens@csie.org>
drivers/clk/sunxi-ng/ccu_div.c