clk: ingenic/TCU: Fix round_rate returning error
authorPaul Cercueil <paul@crapouillou.net>
Thu, 13 Feb 2020 16:19:52 +0000 (13:19 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 08:50:21 +0000 (10:50 +0200)
commitbf4fcd52742eba1c1ac6e1d1d123e335f691fa71
tree55686e56e61c7edd2b95cc4b6ab92bd43ef8e0c3
parent9e8388fdf4de8ec0fb3093ba797de013cc5161c6
clk: ingenic/TCU: Fix round_rate returning error

commit edcc42945dee85e9dec3737f3dbf59d917ae5418 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/ingenic/tcu.c