]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
clk: imx8mn: Add missing rate_count assignment for each PLL structure
authorAnson Huang <Anson.Huang@nxp.com>
Sun, 18 Aug 2019 06:32:23 +0000 (02:32 -0400)
committerShawn Guo <shawnguo@kernel.org>
Mon, 19 Aug 2019 13:36:58 +0000 (15:36 +0200)
Add .rate_count assignment which is necessary for searching required
PLL rate from the each PLL table.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk-imx8mn.c

index 1419d7d1b96ca7343e311f0e3fa521785fafd896..f09693112ee295b406ded6b666b5f9d52b1cecf0 100644 (file)
@@ -67,36 +67,43 @@ static const struct imx_pll14xx_rate_table imx8mn_drampll_tbl[] = {
 static struct imx_pll14xx_clk imx8mn_audio_pll = {
                .type = PLL_1443X,
                .rate_table = imx8mn_audiopll_tbl,
+               .rate_count = ARRAY_SIZE(imx8mn_audiopll_tbl),
 };
 
 static struct imx_pll14xx_clk imx8mn_video_pll = {
                .type = PLL_1443X,
                .rate_table = imx8mn_videopll_tbl,
+               .rate_count = ARRAY_SIZE(imx8mn_videopll_tbl),
 };
 
 static struct imx_pll14xx_clk imx8mn_dram_pll = {
                .type = PLL_1443X,
                .rate_table = imx8mn_drampll_tbl,
+               .rate_count = ARRAY_SIZE(imx8mn_drampll_tbl),
 };
 
 static struct imx_pll14xx_clk imx8mn_arm_pll = {
                .type = PLL_1416X,
                .rate_table = imx8mn_pll1416x_tbl,
+               .rate_count = ARRAY_SIZE(imx8mn_pll1416x_tbl),
 };
 
 static struct imx_pll14xx_clk imx8mn_gpu_pll = {
                .type = PLL_1416X,
                .rate_table = imx8mn_pll1416x_tbl,
+               .rate_count = ARRAY_SIZE(imx8mn_pll1416x_tbl),
 };
 
 static struct imx_pll14xx_clk imx8mn_vpu_pll = {
                .type = PLL_1416X,
                .rate_table = imx8mn_pll1416x_tbl,
+               .rate_count = ARRAY_SIZE(imx8mn_pll1416x_tbl),
 };
 
 static struct imx_pll14xx_clk imx8mn_sys_pll = {
                .type = PLL_1416X,
                .rate_table = imx8mn_pll1416x_tbl,
+               .rate_count = ARRAY_SIZE(imx8mn_pll1416x_tbl),
 };
 
 static const char * const pll_ref_sels[] = { "osc_24m", "dummy", "dummy", "dummy", };