Skip to content

Commit 6d7283b

Browse files
committed
clk: rp1: Fix rp1_pll_divider_determine_rate
The determine_rate member of clk_ops returns the rate to the caller by modifying the pass-by-reference req structure. Its actual return value is a status code. Signed-off-by: Phil Elwell <[email protected]>
1 parent 195f5c6 commit 6d7283b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/clk/clk-rp1.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -771,9 +771,7 @@ static unsigned long rp1_pll_divider_recalc_rate(struct clk_hw *hw,
771771
static int rp1_pll_divider_determine_rate(struct clk_hw *hw,
772772
struct clk_rate_request *req)
773773
{
774-
req->rate = clk_divider_ops.determine_rate(hw, req);
775-
776-
return 0;
774+
return clk_divider_ops.determine_rate(hw, req);
777775
}
778776

779777
static int rp1_clock_is_on(struct clk_hw *hw)

0 commit comments

Comments
 (0)