diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-06-22 11:53:51 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-06-23 12:06:27 +0200 |
commit | f0b561fcb6195198014e9168816d808125821693 (patch) | |
tree | 69abe7fb1a2a4401f9b55211e40463bd69303d04 /include | |
parent | ffa73e1b91c33b4f69fdf5d8f8653c03d2426aaf (diff) | |
download | barebox-f0b561fcb6195198014e9168816d808125821693.tar.gz barebox-f0b561fcb6195198014e9168816d808125821693.tar.xz |
clk: sync of_clk_get_parent_name with upstream
Upstream of_clk_get_parent_name only resorts to node name as a fallback.
Instead, it uses the name supplied for registered clocks whenever
possible. On the sama5d2, this results in sckc@f8048050 and slowck,
respectively. So far, sckc@f8048050 in the parents array couldn't be
matched with any existing clock, leading to an inaccurate clock tree.
Port over the v5.8-rc1 state of the function to fix this.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/clk.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h index a005e7233d..d14d8b96a3 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -556,7 +556,7 @@ struct string_list; int clk_name_complete(struct string_list *sl, char *instr); -char *of_clk_get_parent_name(struct device_node *np, unsigned int index); +char *of_clk_get_parent_name(const struct device_node *np, int index); static inline void clk_unregister(struct clk *clk) { |