Skip to content

Commit 2d5513b

Browse files
MrVanabelvesa
authored andcommitted
clk: imx: remove clk_count of imx_register_uart_clocks
The clk count has been get with of_clk_get_parent_count, there is no need to pass clk_count from users. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Abel Vesa <abel.vesa@linaro.org> Signed-off-by: Abel Vesa <abel.vesa@linaro.org> Link: https://lore.kernel.org/r/20230104110032.1220721-4-peng.fan@oss.nxp.com
1 parent 8658f0a commit 2d5513b

17 files changed

Lines changed: 21 additions & 21 deletions

drivers/clk/imx/clk-imx25.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ static int __init __mx25_clocks_init(void __iomem *ccm_base)
218218
*/
219219
clk_set_parent(clk[cko_sel], clk[ipg]);
220220

221-
imx_register_uart_clocks(6);
221+
imx_register_uart_clocks();
222222

223223
return 0;
224224
}

drivers/clk/imx/clk-imx27.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ static void __init _mx27_clocks_init(unsigned long fref)
165165

166166
clk_prepare_enable(clk[IMX27_CLK_EMI_AHB_GATE]);
167167

168-
imx_register_uart_clocks(7);
168+
imx_register_uart_clocks();
169169

170170
imx_print_silicon_rev("i.MX27", mx27_revision());
171171
}

drivers/clk/imx/clk-imx35.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ static void __init _mx35_clocks_init(void)
235235
*/
236236
clk_prepare_enable(clk[scc_gate]);
237237

238-
imx_register_uart_clocks(4);
238+
imx_register_uart_clocks();
239239

240240
imx_print_silicon_rev("i.MX35", mx35_revision());
241241
}

drivers/clk/imx/clk-imx5.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ static void __init mx50_clocks_init(struct device_node *np)
358358
r = clk_round_rate(clk[IMX5_CLK_USBOH3_PER_GATE], 54000000);
359359
clk_set_rate(clk[IMX5_CLK_USBOH3_PER_GATE], r);
360360

361-
imx_register_uart_clocks(5);
361+
imx_register_uart_clocks();
362362
}
363363
CLK_OF_DECLARE(imx50_ccm, "fsl,imx50-ccm", mx50_clocks_init);
364364

@@ -464,7 +464,7 @@ static void __init mx51_clocks_init(struct device_node *np)
464464
val |= 1 << 23;
465465
writel(val, MXC_CCM_CLPCR);
466466

467-
imx_register_uart_clocks(3);
467+
imx_register_uart_clocks();
468468
}
469469
CLK_OF_DECLARE(imx51_ccm, "fsl,imx51-ccm", mx51_clocks_init);
470470

@@ -609,6 +609,6 @@ static void __init mx53_clocks_init(struct device_node *np)
609609
r = clk_round_rate(clk[IMX5_CLK_USBOH3_PER_GATE], 54000000);
610610
clk_set_rate(clk[IMX5_CLK_USBOH3_PER_GATE], r);
611611

612-
imx_register_uart_clocks(5);
612+
imx_register_uart_clocks();
613613
}
614614
CLK_OF_DECLARE(imx53_ccm, "fsl,imx53-ccm", mx53_clocks_init);

drivers/clk/imx/clk-imx6q.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,6 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node)
974974
hws[IMX6QDL_CLK_PLL3_USB_OTG]->clk);
975975
}
976976

977-
imx_register_uart_clocks(2);
977+
imx_register_uart_clocks();
978978
}
979979
CLK_OF_DECLARE(imx6q, "fsl,imx6q-ccm", imx6q_clocks_init);

drivers/clk/imx/clk-imx6sl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,6 @@ static void __init imx6sl_clocks_init(struct device_node *ccm_node)
440440
clk_set_parent(hws[IMX6SL_CLK_LCDIF_AXI_SEL]->clk,
441441
hws[IMX6SL_CLK_PLL2_PFD2]->clk);
442442

443-
imx_register_uart_clocks(2);
443+
imx_register_uart_clocks();
444444
}
445445
CLK_OF_DECLARE(imx6sl, "fsl,imx6sl-ccm", imx6sl_clocks_init);

drivers/clk/imx/clk-imx6sll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ static void __init imx6sll_clocks_init(struct device_node *ccm_node)
340340

341341
of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_hw_data);
342342

343-
imx_register_uart_clocks(5);
343+
imx_register_uart_clocks();
344344

345345
/* Lower the AHB clock rate before changing the clock source. */
346346
clk_set_rate(hws[IMX6SLL_CLK_AHB]->clk, 99000000);

drivers/clk/imx/clk-imx6sx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,6 @@ static void __init imx6sx_clocks_init(struct device_node *ccm_node)
548548
clk_set_parent(hws[IMX6SX_CLK_QSPI1_SEL]->clk, hws[IMX6SX_CLK_PLL2_BUS]->clk);
549549
clk_set_parent(hws[IMX6SX_CLK_QSPI2_SEL]->clk, hws[IMX6SX_CLK_PLL2_BUS]->clk);
550550

551-
imx_register_uart_clocks(2);
551+
imx_register_uart_clocks();
552552
}
553553
CLK_OF_DECLARE(imx6sx, "fsl,imx6sx-ccm", imx6sx_clocks_init);

drivers/clk/imx/clk-imx7d.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node)
882882
hws[IMX7D_USB1_MAIN_480M_CLK] = imx_clk_hw_fixed_factor("pll_usb1_main_clk", "osc", 20, 1);
883883
hws[IMX7D_USB_MAIN_480M_CLK] = imx_clk_hw_fixed_factor("pll_usb_main_clk", "osc", 20, 1);
884884

885-
imx_register_uart_clocks(7);
885+
imx_register_uart_clocks();
886886

887887
}
888888
CLK_OF_DECLARE(imx7d, "fsl,imx7d-ccm", imx7d_clocks_init);

drivers/clk/imx/clk-imx7ulp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ static void __init imx7ulp_clk_pcc2_init(struct device_node *np)
176176

177177
of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_data);
178178

179-
imx_register_uart_clocks(2);
179+
imx_register_uart_clocks();
180180
}
181181
CLK_OF_DECLARE(imx7ulp_clk_pcc2, "fsl,imx7ulp-pcc2", imx7ulp_clk_pcc2_init);
182182

@@ -223,7 +223,7 @@ static void __init imx7ulp_clk_pcc3_init(struct device_node *np)
223223

224224
of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_data);
225225

226-
imx_register_uart_clocks(7);
226+
imx_register_uart_clocks();
227227
}
228228
CLK_OF_DECLARE(imx7ulp_clk_pcc3, "fsl,imx7ulp-pcc3", imx7ulp_clk_pcc3_init);
229229

0 commit comments

Comments
 (0)