clk: mediatek: Fix apmixedsys clock registration
authorJames Liao <jamesjj.liao@mediatek.com>
Thu, 21 May 2015 07:12:52 +0000 (15:12 +0800)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 4 Jun 2015 21:07:07 +0000 (14:07 -0700)
commit90acb40f1874f7b304b1d8d9b07c72aa83337e31
tree7807dd965433e47911ad83b858037a7d0ea96b79
parentf71355b3d14421784f13c44b66fe0fbc7d3dbdb1
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>
drivers/clk/mediatek/clk-mt8135.c
drivers/clk/mediatek/clk-mt8173.c