Commit 1a537f62 authored by Claudiu Beznea's avatar Claudiu Beznea
Browse files

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



Add support for parent_hw in system 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-system 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-7-claudiu.beznea@microchip.com
parent 1a2669df
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -182,7 +182,7 @@ static void __init at91rm9200_pmc_setup(struct device_node *np)

	for (i = 0; i < ARRAY_SIZE(at91rm9200_systemck); i++) {
		hw = at91_clk_register_system(regmap, at91rm9200_systemck[i].n,
					      at91rm9200_systemck[i].p,
					      at91rm9200_systemck[i].p, NULL,
					      at91rm9200_systemck[i].id, 0);
		if (IS_ERR(hw))
			goto err_free;
+1 −1
Original line number Diff line number Diff line
@@ -459,7 +459,7 @@ static void __init at91sam926x_pmc_setup(struct device_node *np,

	for (i = 0; i < data->num_sck; i++) {
		hw = at91_clk_register_system(regmap, data->sck[i].n,
					      data->sck[i].p,
					      data->sck[i].p, NULL,
					      data->sck[i].id, 0);
		if (IS_ERR(hw))
			goto err_free;
+1 −1
Original line number Diff line number Diff line
@@ -202,7 +202,7 @@ static void __init at91sam9g45_pmc_setup(struct device_node *np)

	for (i = 0; i < ARRAY_SIZE(at91sam9g45_systemck); i++) {
		hw = at91_clk_register_system(regmap, at91sam9g45_systemck[i].n,
					      at91sam9g45_systemck[i].p,
					      at91sam9g45_systemck[i].p, NULL,
					      at91sam9g45_systemck[i].id,
					      at91sam9g45_systemck[i].flags);
		if (IS_ERR(hw))
+1 −1
Original line number Diff line number Diff line
@@ -227,7 +227,7 @@ static void __init at91sam9n12_pmc_setup(struct device_node *np)

	for (i = 0; i < ARRAY_SIZE(at91sam9n12_systemck); i++) {
		hw = at91_clk_register_system(regmap, at91sam9n12_systemck[i].n,
					      at91sam9n12_systemck[i].p,
					      at91sam9n12_systemck[i].p, NULL,
					      at91sam9n12_systemck[i].id,
					      at91sam9n12_systemck[i].flags);
		if (IS_ERR(hw))
+1 −1
Original line number Diff line number Diff line
@@ -159,7 +159,7 @@ static void __init at91sam9rl_pmc_setup(struct device_node *np)

	for (i = 0; i < ARRAY_SIZE(at91sam9rl_systemck); i++) {
		hw = at91_clk_register_system(regmap, at91sam9rl_systemck[i].n,
					      at91sam9rl_systemck[i].p,
					      at91sam9rl_systemck[i].p, NULL,
					      at91sam9rl_systemck[i].id, 0);
		if (IS_ERR(hw))
			goto err_free;
Loading