ramips: fix wrong i2s clock unit from kHz to MHz
authorQin Wei <[email protected]>
Tue, 5 Mar 2019 01:58:55 +0000 (09:58 +0800)
committerPetr Štetiar <[email protected]>
Sun, 24 Mar 2019 00:44:24 +0000 (01:44 +0100)
clk_get_rate returns the current clock rate in Hz for a clock source so
if we divide it by 1M, then we get frequency in MHz and not kHz.

Signed-off-by: Qin Wei <[email protected]>
[added missing commit message, and fixed author with SoB from PR message]
Signed-off-by: Petr Štetiar <[email protected]>
Signed-off-by: Petr Štetiar <[email protected]>
target/linux/ramips/patches-4.14/0048-asoc-add-mt7620-support.patch

index 5f105c69e21fc804b4c7bf9b783e286380d1de7f..1834e88538f47c1f5916a5853e8e29130c1b918b 100644 (file)
@@ -1007,7 +1007,7 @@ Signed-off-by: John Crispin <[email protected]>
 +      if (ret)
 +              goto err_debugfs;
 +
-+      dev_info(i2s->dev, "mclk %luKHz\n", clk_get_rate(i2s->clk) / 1000000);
++      dev_info(i2s->dev, "mclk %luMHz\n", clk_get_rate(i2s->clk) / 1000000);
 +
 +      return 0;
 +