diff options
author | Claudiu Beznea <claudiu.beznea@microchip.com> | 2023-06-15 12:32:17 +0300 |
---|---|---|
committer | Claudiu Beznea <claudiu.beznea@microchip.com> | 2023-06-21 10:42:45 +0300 |
commit | b5105e377df929dd7d96628122c13e6852f2fe80 (patch) | |
tree | 69e6b0da11907f8d328bd34836bd9119dd2fa837 /drivers/clk/at91/at91rm9200.c | |
parent | 9a7b010116a430d74dc30a214ea55a58a2863d71 (diff) | |
download | linux-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/at91rm9200.c')
-rw-r--r-- | drivers/clk/at91/at91rm9200.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/at91/at91rm9200.c b/drivers/clk/at91/at91rm9200.c index 0b860126d589..83917a2c31bd 100644 --- a/drivers/clk/at91/at91rm9200.c +++ b/drivers/clk/at91/at91rm9200.c @@ -108,12 +108,12 @@ static void __init at91rm9200_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; |