Commit c2f2ca0b authored by Claudiu Beznea's avatar Claudiu Beznea
Browse files

clk: at91: clk-peripheral: add support for parent_hw



Add support for parent_hw in peripheral clock drivers.
With this parent-child relation is described with pointers rather
than strings making registration a bit faster.

All the SoC based drivers that rely on clk-peripheral were adapted
to the new API change. The switch itself for SoCs will be done
in subsequent patches.

Signed-off-by: default avatarClaudiu Beznea <claudiu.beznea@microchip.com>
Reviewed-by: default avatarMaxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20230615093227.576102-5-claudiu.beznea@microchip.com
parent 171e502c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -193,7 +193,7 @@ static void __init at91rm9200_pmc_setup(struct device_node *np)
	for (i = 0; i < ARRAY_SIZE(at91rm9200_periphck); i++) {
		hw = at91_clk_register_peripheral(regmap,
						  at91rm9200_periphck[i].n,
						  "masterck_div",
						  "masterck_div", NULL,
						  at91rm9200_periphck[i].id);
		if (IS_ERR(hw))
			goto err_free;
+1 −1
Original line number Diff line number Diff line
@@ -470,7 +470,7 @@ static void __init at91sam926x_pmc_setup(struct device_node *np,
	for (i = 0; i < data->num_pck; i++) {
		hw = at91_clk_register_peripheral(regmap,
						  data->pck[i].n,
						  "masterck_div",
						  "masterck_div", NULL,
						  data->pck[i].id);
		if (IS_ERR(hw))
			goto err_free;
+1 −1
Original line number Diff line number Diff line
@@ -214,7 +214,7 @@ static void __init at91sam9g45_pmc_setup(struct device_node *np)
	for (i = 0; i < ARRAY_SIZE(at91sam9g45_periphck); i++) {
		hw = at91_clk_register_peripheral(regmap,
						  at91sam9g45_periphck[i].n,
						  "masterck_div",
						  "masterck_div", NULL,
						  at91sam9g45_periphck[i].id);
		if (IS_ERR(hw))
			goto err_free;
+1 −1
Original line number Diff line number Diff line
@@ -240,7 +240,7 @@ static void __init at91sam9n12_pmc_setup(struct device_node *np)
		hw = at91_clk_register_sam9x5_peripheral(regmap, &pmc_pcr_lock,
							 &at91sam9n12_pcr_layout,
							 at91sam9n12_periphck[i].n,
							 "masterck_div",
							 "masterck_div", NULL,
							 at91sam9n12_periphck[i].id,
							 &range, INT_MIN, 0);
		if (IS_ERR(hw))
+1 −1
Original line number Diff line number Diff line
@@ -170,7 +170,7 @@ static void __init at91sam9rl_pmc_setup(struct device_node *np)
	for (i = 0; i < ARRAY_SIZE(at91sam9rl_periphck); i++) {
		hw = at91_clk_register_peripheral(regmap,
						  at91sam9rl_periphck[i].n,
						  "masterck_div",
						  "masterck_div", NULL,
						  at91sam9rl_periphck[i].id);
		if (IS_ERR(hw))
			goto err_free;
Loading