summaryrefslogtreecommitdiff
path: root/drivers/clk/at91/at91sam9260.c
diff options
context:
space:
mode:
authorClaudiu Beznea <claudiu.beznea@microchip.com>2023-06-15 12:32:17 +0300
committerClaudiu Beznea <claudiu.beznea@microchip.com>2023-06-21 10:42:45 +0300
commitb5105e377df929dd7d96628122c13e6852f2fe80 (patch)
tree69e6b0da11907f8d328bd34836bd9119dd2fa837 /drivers/clk/at91/at91sam9260.c
parent9a7b010116a430d74dc30a214ea55a58a2863d71 (diff)
downloadlinux-b5105e377df929dd7d96628122c13e6852f2fe80.tar.xz
clk: at91: clk-main: add support for parent_data/parent_hw
Add support for parent_data and parent_hw in main oscillator clock drivers. With this parent-child relations are described with pointers rather than strings making registration a bit faster. All the SoC based drivers that rely on clk-main were adapted to the new API change. The switch itself for SoCs will be done in subsequent patches. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Reviewed-by: Maxime Ripard <mripard@kernel.org> Link: https://lore.kernel.org/r/20230615093227.576102-2-claudiu.beznea@microchip.com
Diffstat (limited to 'drivers/clk/at91/at91sam9260.c')
-rw-r--r--drivers/clk/at91/at91sam9260.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/at91/at91sam9260.c b/drivers/clk/at91/at91sam9260.c
index b521f470428f..e9b56826a9be 100644
--- a/drivers/clk/at91/at91sam9260.c
+++ b/drivers/clk/at91/at91sam9260.c
@@ -363,12 +363,12 @@ static void __init at91sam926x_pmc_setup(struct device_node *np,
bypass = of_property_read_bool(np, "atmel,osc-bypass");
- hw = at91_clk_register_main_osc(regmap, "main_osc", mainxtal_name,
+ hw = at91_clk_register_main_osc(regmap, "main_osc", mainxtal_name, NULL,
bypass);
if (IS_ERR(hw))
goto err_free;
- hw = at91_clk_register_rm9200_main(regmap, "mainck", "main_osc");
+ hw = at91_clk_register_rm9200_main(regmap, "mainck", "main_osc", NULL);
if (IS_ERR(hw))
goto err_free;