]> git.sur5r.net Git - u-boot/commitdiff
clk: renesas: Fix swapped arguments in debug message
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Thu, 31 May 2018 16:56:35 +0000 (18:56 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Fri, 1 Jun 2018 07:42:13 +0000 (09:42 +0200)
The mul and div arguments were reported in reverse order in the debug
message, swap them to fix this.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
drivers/clk/renesas/clk-rcar-gen3.c

index 3a95647abede684a5b1f85a16c1d5262be5aee02..4f10fd6352b18375ace9256ea74917f41c915bcb 100644 (file)
@@ -230,7 +230,7 @@ static ulong gen3_clk_get_rate(struct clk *clk)
        case CLK_TYPE_FF:
        case CLK_TYPE_GEN3_PE:          /* FIXME */
                rate = (gen3_clk_get_rate(&parent) * core->mult) / core->div;
-               debug("%s[%i] FIXED clk: parent=%i div=%i mul=%i => rate=%u\n",
+               debug("%s[%i] FIXED clk: parent=%i mul=%i div=%i => rate=%u\n",
                      __func__, __LINE__,
                      core->parent, core->mult, core->div, rate);
                return rate;