Commit 2d5513bf authored by Peng Fan's avatar Peng Fan Committed by Abel Vesa
Browse files

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: default avatarPeng Fan <peng.fan@nxp.com>
Reviewed-by: default avatarAbel Vesa <abel.vesa@linaro.org>
Signed-off-by: default avatarAbel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20230104110032.1220721-4-peng.fan@oss.nxp.com
parent 8658f0ac
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -218,7 +218,7 @@ static int __init __mx25_clocks_init(void __iomem *ccm_base)
	 */
	clk_set_parent(clk[cko_sel], clk[ipg]);

	imx_register_uart_clocks(6);
	imx_register_uart_clocks();

	return 0;
}
+1 −1
Original line number Diff line number Diff line
@@ -165,7 +165,7 @@ static void __init _mx27_clocks_init(unsigned long fref)

	clk_prepare_enable(clk[IMX27_CLK_EMI_AHB_GATE]);

	imx_register_uart_clocks(7);
	imx_register_uart_clocks();

	imx_print_silicon_rev("i.MX27", mx27_revision());
}
+1 −1
Original line number Diff line number Diff line
@@ -235,7 +235,7 @@ static void __init _mx35_clocks_init(void)
	 */
	clk_prepare_enable(clk[scc_gate]);

	imx_register_uart_clocks(4);
	imx_register_uart_clocks();

	imx_print_silicon_rev("i.MX35", mx35_revision());
}
+3 −3
Original line number Diff line number Diff line
@@ -358,7 +358,7 @@ static void __init mx50_clocks_init(struct device_node *np)
	r = clk_round_rate(clk[IMX5_CLK_USBOH3_PER_GATE], 54000000);
	clk_set_rate(clk[IMX5_CLK_USBOH3_PER_GATE], r);

	imx_register_uart_clocks(5);
	imx_register_uart_clocks();
}
CLK_OF_DECLARE(imx50_ccm, "fsl,imx50-ccm", mx50_clocks_init);

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

	imx_register_uart_clocks(3);
	imx_register_uart_clocks();
}
CLK_OF_DECLARE(imx51_ccm, "fsl,imx51-ccm", mx51_clocks_init);

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

	imx_register_uart_clocks(5);
	imx_register_uart_clocks();
}
CLK_OF_DECLARE(imx53_ccm, "fsl,imx53-ccm", mx53_clocks_init);
+1 −1
Original line number Diff line number Diff line
@@ -974,6 +974,6 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node)
			       hws[IMX6QDL_CLK_PLL3_USB_OTG]->clk);
	}

	imx_register_uart_clocks(2);
	imx_register_uart_clocks();
}
CLK_OF_DECLARE(imx6q, "fsl,imx6q-ccm", imx6q_clocks_init);
Loading