diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-05-02 09:30:32 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-05-02 09:30:32 +0100 |
commit | e9d7f4065408e92338a41b809e437c6e043da090 (patch) | |
tree | d89c702ecd99fc606c9d5265278cabb6d3744607 /include/linux/clkdev.h | |
parent | 67b508715a61962f9b5b3ef3432e045a9cba4f1e (diff) | |
download | linux-stable-e9d7f4065408e92338a41b809e437c6e043da090.tar.gz linux-stable-e9d7f4065408e92338a41b809e437c6e043da090.tar.bz2 linux-stable-e9d7f4065408e92338a41b809e437c6e043da090.zip |
CLKDEV: provide helpers for common clock framework
The common clock framework allocates clocks dynamically. Provide a
set of helpers to streamline the clkdev registration of the clock
lookups to avoid repetitive code sequences.
Reviewed-by: Viresh Kumar <viresh.kumar@st.com>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/linux/clkdev.h')
-rw-r--r-- | include/linux/clkdev.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/clkdev.h b/include/linux/clkdev.h index d9a4fd028c9d..a6a6f603103b 100644 --- a/include/linux/clkdev.h +++ b/include/linux/clkdev.h @@ -40,4 +40,7 @@ void clkdev_drop(struct clk_lookup *cl); void clkdev_add_table(struct clk_lookup *, size_t); int clk_add_alias(const char *, const char *, char *, struct device *); +int clk_register_clkdev(struct clk *, const char *, const char *, ...); +int clk_register_clkdevs(struct clk *, struct clk_lookup *, size_t); + #endif |