diff options
author | James Liao <jamesjj.liao@mediatek.com> | 2015-05-21 09:12:52 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-06-04 23:07:07 +0200 |
commit | 90acb40f1874f7b304b1d8d9b07c72aa83337e31 (patch) | |
tree | 7807dd965433e47911ad83b858037a7d0ea96b79 /drivers/clk/mediatek | |
parent | clk: ti: Use of_clk_get_parent_count() instead of open coding (diff) | |
download | linux-90acb40f1874f7b304b1d8d9b07c72aa83337e31.tar.xz linux-90acb40f1874f7b304b1d8d9b07c72aa83337e31.zip |
clk: mediatek: Fix apmixedsys clock registration
The size of clk_data should be the same as CLK_APMIXED_NR_CLK
instead of ARRAY_SIZE(plls). CLK_APMIXED_* is numbered from 1, so
CLK_APMIXED_NR_CLK will be greater than ARRAY_SIZE(plls).
Signed-off-by: James Liao <jamesjj.liao@mediatek.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/mediatek')
-rw-r--r-- | drivers/clk/mediatek/clk-mt8135.c | 2 | ||||
-rw-r--r-- | drivers/clk/mediatek/clk-mt8173.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/mediatek/clk-mt8135.c b/drivers/clk/mediatek/clk-mt8135.c index a63435b95822..08b4b849b491 100644 --- a/drivers/clk/mediatek/clk-mt8135.c +++ b/drivers/clk/mediatek/clk-mt8135.c @@ -634,7 +634,7 @@ static void __init mtk_apmixedsys_init(struct device_node *node) { struct clk_onecell_data *clk_data; - clk_data = mtk_alloc_clk_data(ARRAY_SIZE(plls)); + clk_data = mtk_alloc_clk_data(CLK_APMIXED_NR_CLK); if (!clk_data) return; diff --git a/drivers/clk/mediatek/clk-mt8173.c b/drivers/clk/mediatek/clk-mt8173.c index 357b080eb04f..4b9e04cdf7e8 100644 --- a/drivers/clk/mediatek/clk-mt8173.c +++ b/drivers/clk/mediatek/clk-mt8173.c @@ -818,7 +818,7 @@ static void __init mtk_apmixedsys_init(struct device_node *node) { struct clk_onecell_data *clk_data; - clk_data = mtk_alloc_clk_data(ARRAY_SIZE(plls)); + clk_data = mtk_alloc_clk_data(CLK_APMIXED_NR_CLK); if (!clk_data) return; |