diff options
author | Qin Wei <support@vocore.io> | 2019-03-05 09:58:55 +0800 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2019-03-24 01:44:24 +0100 |
commit | 5f40b519f3b211f440a8f96dc1ce9a1be60aa0c9 (patch) | |
tree | e9b5e32415b63320e28d788ce3fb4299efbbc2cc /target | |
parent | 503edc913be963b7dff8973f618bd47d99ca6c73 (diff) | |
download | upstream-5f40b519f3b211f440a8f96dc1ce9a1be60aa0c9.tar.gz upstream-5f40b519f3b211f440a8f96dc1ce9a1be60aa0c9.tar.bz2 upstream-5f40b519f3b211f440a8f96dc1ce9a1be60aa0c9.zip |
ramips: fix wrong i2s clock unit from kHz to MHz
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 <support@vocore.io>
[added missing commit message, and fixed author with SoB from PR message]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ramips/patches-4.14/0048-asoc-add-mt7620-support.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ramips/patches-4.14/0048-asoc-add-mt7620-support.patch b/target/linux/ramips/patches-4.14/0048-asoc-add-mt7620-support.patch index 5f105c69e2..1834e88538 100644 --- a/target/linux/ramips/patches-4.14/0048-asoc-add-mt7620-support.patch +++ b/target/linux/ramips/patches-4.14/0048-asoc-add-mt7620-support.patch @@ -1007,7 +1007,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org> + 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; + |