Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: return unsigned int in dummy non-OF of_clk_get_parent_count()

In the commit 929e7f3bc7b82 ("clk: Make of_clk_get_parent_count() return
unsigned ints") of_clk_get_parent_count has been modified to return
unsigned int. There is also a dummy implementation of the same function
for configs without CONFIG_OF. For the consistency it should be updated
as well.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

authored by

Rafał Miłecki and committed by
Stephen Boyd
d42c0472 5e23c593

+1 -1
+1 -1
include/linux/clk-provider.h
··· 854 854 { 855 855 return ERR_PTR(-ENOENT); 856 856 } 857 - static inline int of_clk_get_parent_count(struct device_node *np) 857 + static inline unsigned int of_clk_get_parent_count(struct device_node *np) 858 858 { 859 859 return 0; 860 860 }