diff options
author | Manikandan Muralidharan <manikandan.m@microchip.com> | 2025-06-03 10:35:51 +0530 |
---|---|---|
committer | Eugen Hristev <eugen.hristev@linaro.org> | 2025-06-19 13:56:43 +0300 |
commit | ed5ffbee4804aa67b78b53caa0bfd793c6f85d74 (patch) | |
tree | d5b11287cdb0af0402c799f00516ea7afe18e7c2 | |
parent | 107cf34bd799b868f3ec640d31567cd4a9bf7b81 (diff) |
clk: at91: clk-main: drop parent_name check when registering main_rc oscillator
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>
-rw-r--r-- | drivers/clk/at91/clk-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/at91/clk-main.c b/drivers/clk/at91/clk-main.c index 09daae97676..a5186f885f0 100644 --- a/drivers/clk/at91/clk-main.c +++ b/drivers/clk/at91/clk-main.c @@ -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); |