summaryrefslogtreecommitdiffstats
path: root/drivers/clk/at91/dt-compat.c
diff options
context:
space:
mode:
authorClaudiu Beznea <claudiu.beznea@microchip.com>2023-06-15 11:32:20 +0200
committerClaudiu Beznea <claudiu.beznea@microchip.com>2023-06-21 09:42:46 +0200
commitc2f2ca0be8a62ce61a6878cd3dddd8fc6d622999 (patch)
treeffe99485f6f34ae8e428f82ef9d6c6c0b0755ad8 /drivers/clk/at91/dt-compat.c
parentclk: at91: clk-master: add support for parent_hw (diff)
downloadlinux-c2f2ca0be8a62ce61a6878cd3dddd8fc6d622999.tar.xz
linux-c2f2ca0be8a62ce61a6878cd3dddd8fc6d622999.zip
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: Claudiu Beznea <claudiu.beznea@microchip.com> Reviewed-by: Maxime Ripard <mripard@kernel.org> Link: https://lore.kernel.org/r/20230615093227.576102-5-claudiu.beznea@microchip.com
Diffstat (limited to 'drivers/clk/at91/dt-compat.c')
-rw-r--r--drivers/clk/at91/dt-compat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/clk/at91/dt-compat.c b/drivers/clk/at91/dt-compat.c
index 4a024bb97312..8995e1cc73c6 100644
--- a/drivers/clk/at91/dt-compat.c
+++ b/drivers/clk/at91/dt-compat.c
@@ -490,7 +490,7 @@ of_at91_clk_periph_setup(struct device_node *np, u8 type)
if (type == PERIPHERAL_AT91RM9200) {
hw = at91_clk_register_peripheral(regmap, name,
- parent_name, id);
+ parent_name, NULL, id);
} else {
struct clk_range range = CLK_RANGE(0, 0);
unsigned long flags = 0;
@@ -512,6 +512,7 @@ of_at91_clk_periph_setup(struct device_node *np, u8 type)
&dt_pcr_layout,
name,
parent_name,
+ NULL,
id, &range,
INT_MIN,
flags);