diff options
author | Hai Pham | 2020-12-05 09:35:40 +0700 |
---|---|---|
committer | Marek Vasut | 2021-05-21 15:00:16 +0200 |
commit | efece632e7063c0ee901b6ffb4bb6294b45665f2 (patch) | |
tree | 571326abacd260ac7f1864b972c0853d9cd1e042 /drivers | |
parent | ccc2c9aab187f302c5e40686fb5d7a9d456d90dc (diff) |
clk: renesas: Fix incorrect return RPC clk_get_rate
RPC clk_get_rate will return error code instead of expected clock rate.
Fix this.
Signed-off-by: Hai Pham <hai.pham.ud@renesas.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/clk/renesas/clk-rcar-gen3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/renesas/clk-rcar-gen3.c b/drivers/clk/renesas/clk-rcar-gen3.c index 3223becd753..09d84c44e1d 100644 --- a/drivers/clk/renesas/clk-rcar-gen3.c +++ b/drivers/clk/renesas/clk-rcar-gen3.c @@ -310,7 +310,7 @@ static u64 gen3_clk_get_rate64(struct clk *clk) __func__, __LINE__, core->parent, prediv, postdiv, rate); - return -EINVAL; + return rate; } |