From: Hai Pham Date: Sat, 5 Dec 2020 02:35:40 +0000 (+0700) Subject: clk: renesas: Fix incorrect return RPC clk_get_rate X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=efece632e7063c0ee901b6ffb4bb6294b45665f2;p=u-boot.git 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 --- 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; }