summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMike Turquette <mturquette@linaro.org>2013-10-08 08:12:13 +0200
committerMike Turquette <mturquette@linaro.org>2013-10-08 08:13:33 +0200
commitf61027426a5bc7093aa8359a411b053a35bb4b68 (patch)
tree225758cc8fe637500ff2a9160550aabcc0ddb4ef /include
parentclk/zynq: Fix possible memory leak (diff)
downloadlinux-f61027426a5bc7093aa8359a411b053a35bb4b68.tar.xz
linux-f61027426a5bc7093aa8359a411b053a35bb4b68.zip
clk: of: helper for determining number of parent clocks
Walks the "clocks" array of parent clock phandles and returns the number. Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/clk-provider.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index 73bdb69f0c08..7e59253b8603 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -472,6 +472,7 @@ void of_clk_del_provider(struct device_node *np);
struct clk *of_clk_src_simple_get(struct of_phandle_args *clkspec,
void *data);
struct clk *of_clk_src_onecell_get(struct of_phandle_args *clkspec, void *data);
+int of_clk_get_parent_count(struct device_node *np);
const char *of_clk_get_parent_name(struct device_node *np, int index);
void of_clk_init(const struct of_device_id *matches);