From efece632e7063c0ee901b6ffb4bb6294b45665f2 Mon Sep 17 00:00:00 2001 From: Hai Pham Date: Sat, 5 Dec 2020 09:35:40 +0700 Subject: [PATCH] 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 Signed-off-by: Marek Vasut --- drivers/clk/renesas/clk-rcar-gen3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/renesas/clk-rcar-gen3.c b/drivers/clk/renesas/clk-rcar-gen3.c index 3223becd75..09d84c44e1 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; } -- 2.39.5