clk: return unsigned int in dummy non-OF of_clk_get_parent_count()
authorRafał Miłecki <rafal@milecki.pl>
Fri, 26 Aug 2016 12:58:07 +0000 (14:58 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 26 Aug 2016 19:27:28 +0000 (12:27 -0700)
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>
include/linux/clk-provider.h

index f403b8a5f8ca5ab6a56d93e60f2a0ad0bb26b903..37b8fdce0e49aaf63e42da4e661f1a5f3fa69dfa 100644 (file)
@@ -854,7 +854,7 @@ of_clk_hw_onecell_get(struct of_phandle_args *clkspec, void *data)
 {
        return ERR_PTR(-ENOENT);
 }
-static inline int of_clk_get_parent_count(struct device_node *np)
+static inline unsigned int of_clk_get_parent_count(struct device_node *np)
 {
        return 0;
 }