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]>
+ 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;
+