clk: at91: clk-main: drop parent_name check when registering main_rc oscillator
authorManikandan Muralidharan <manikandan.m@microchip.com>
Tue, 3 Jun 2025 05:05:51 +0000 (10:35 +0530)
committerEugen Hristev <eugen.hristev@linaro.org>
Thu, 19 Jun 2025 10:56:43 +0000 (13:56 +0300)
The clk_register function logs an error if parent_name is missing from the
Device Tree.On the SAM9X7, the main_rc node is omitted to stay aligned with
the Linux Device Tree.Remove the parent_name check in at91_clk_main_rc()
to allow it to pass NULL when the parent is not specified.

Signed-off-by: Manikandan Muralidharan <manikandan.m@microchip.com>
drivers/clk/at91/clk-main.c

index 09daae9..a5186f8 100644 (file)
@@ -110,7 +110,7 @@ struct clk *at91_clk_main_rc(void __iomem *reg, const char *name,
        struct clk *clk;
        int ret;
 
-       if (!reg || !name || !parent_name)
+       if (!reg || !name)
                return ERR_PTR(-EINVAL);
 
        main_rc = kzalloc(sizeof(*main_rc), GFP_KERNEL);