diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2022-01-14 07:59:52 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-01-14 09:25:44 +0100 |
commit | 593225ef6807024d3cfecb02186242aeaf5df966 (patch) | |
tree | 63e651d966a68cca5ebda14f8207973f16cb8fee /include | |
parent | 83d37125f34f1bc343f1b087ab690fc0f551d8db (diff) | |
download | barebox-593225ef6807024d3cfecb02186242aeaf5df966.tar.gz barebox-593225ef6807024d3cfecb02186242aeaf5df966.tar.xz |
clk: change clk_get_num_parents into clk_hw_get_num_parents
There is no clk_get_num_parents in Linux, but clk_hw_get_num_parents.
Our only users uses it with a clk_hw, so adjust the function
accordingly.
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Link: https://lore.barebox.org/20220114065953.698483-1-ahmad@a3f.at
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/clk.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h index 6565429a9b..481c288712 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -721,9 +721,9 @@ int of_clk_add_provider(struct device_node *np, void *data), void *data); -static inline unsigned int clk_get_num_parents(const struct clk *hw) +static inline unsigned int clk_hw_get_num_parents(const struct clk_hw *hw) { - return hw->num_parents; + return hw->clk.num_parents; } #else |