Commit 47b13635 authored by Brian Masney's avatar Brian Masney
Browse files

clk: at91: peripheral: fix return value



determine_rate() is expected to return an error code, or 0 on success.
clk_sam9x5_peripheral_determine_rate() has a branch that returns the
parent rate on a certain case. This is the behavior of round_rate(),
so let's go ahead and fix this by setting req->rate.

Fixes: b4c115c7 ("clk: at91: clk-peripheral: add support for changeable parent rate")
Reviewed-by: default avatarAlexander Sverdlin <alexander.sverdlin@gmail.com>
Acked-by: default avatarNicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: default avatarBrian Masney <bmasney@redhat.com>
parent 0f9cf96a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment