]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: renesas: Fix incorrect return RPC clk_get_rate
authorHai Pham <hai.pham.ud@renesas.com>
Sat, 5 Dec 2020 02:35:40 +0000 (09:35 +0700)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Fri, 21 May 2021 13:00:16 +0000 (15:00 +0200)
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>
drivers/clk/renesas/clk-rcar-gen3.c

index 3223becd753bad4e38201f416e10f1cb0282ce09..09d84c44e1da162660f82a50929b4da2e53ad830 100644 (file)
@@ -310,7 +310,7 @@ static u64 gen3_clk_get_rate64(struct clk *clk)
                      __func__, __LINE__,
                      core->parent, prediv, postdiv, rate);
 
-               return -EINVAL;
+               return rate;
 
        }