clk: ingenic/TCU: Fix round_rate returning error
authorPaul Cercueil <paul@crapouillou.net>
Thu, 13 Feb 2020 16:19:52 +0000 (13:19 -0300)
committerStephen Boyd <sboyd@kernel.org>
Sat, 21 Mar 2020 00:08:40 +0000 (17:08 -0700)
commitedcc42945dee85e9dec3737f3dbf59d917ae5418
tree062435904793588663dbc8318ade126b5858ee23
parentc067b46d731a764fc46ecc466c2967088c97089e
clk: ingenic/TCU: Fix round_rate returning error

When requesting a rate superior to the parent's rate, it would return
-EINVAL instead of simply returning the parent's rate like it should.

Fixes: 4f89e4b8f121 ("clk: ingenic: Add driver for the TCU clocks")
Cc: stable@vger.kernel.org
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lkml.kernel.org/r/20200213161952.37460-2-paul@crapouillou.net
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/ingenic/tcu.c