diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2016-02-05 17:02:52 -0800 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-04-19 16:51:58 -0700 |
commit | 4143804c4fdef40358c654d1fb2271a1a0f1fedf (patch) | |
tree | 8e12e7e18b46dc81af91fb4092f61b3bde726f02 /Documentation | |
parent | a14b9e0512404ed7d4415b888dc9f1f9785a4fa3 (diff) | |
download | linux-4143804c4fdef40358c654d1fb2271a1a0f1fedf.tar.gz linux-4143804c4fdef40358c654d1fb2271a1a0f1fedf.tar.bz2 linux-4143804c4fdef40358c654d1fb2271a1a0f1fedf.zip |
clk: Add {devm_}clk_hw_{register,unregister}() APIs
We've largely split the clk consumer and provider APIs along
struct clk and struct clk_hw, but clk_register() still returns a
struct clk pointer for each struct clk_hw that's registered.
Eventually we'd like to only allocate struct clks when there's a
user, because struct clk is per-user now, so clk_register() needs
to change.
Let's add new APIs to register struct clk_hws, but this time
we'll hide the struct clk from the caller by returning an int
error code. Also add an unregistration API that takes the clk_hw
structure that was passed to the registration API. This way
provider drivers never have to deal with a struct clk pointer
unless they're using the clk consumer APIs.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/driver-model/devres.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/driver-model/devres.txt b/Documentation/driver-model/devres.txt index 73b98dfbcea4..108d45553e1b 100644 --- a/Documentation/driver-model/devres.txt +++ b/Documentation/driver-model/devres.txt @@ -236,6 +236,7 @@ certainly invest a bit more effort into libata core layer). CLOCK devm_clk_get() devm_clk_put() + devm_clk_hw_register() DMA dmam_alloc_coherent() |