commit | a073c2f70af12f180e17b767c90586a745cca895 | [log] [tgz] |
---|---|---|
author | Stephen Boyd <sboyd@codeaurora.org> | Fri Mar 23 15:21:12 2012 -0700 |
committer | Stephen Boyd <sboyd@codeaurora.org> | Thu Apr 12 15:44:22 2012 -0700 |
tree | 9a0bed4d88fb1d7b0096526237ca846479da7e25 | |
parent | 53e4d58968bb8babccf7bc32f6cee9e538c51871 [diff] |
clk: Add devm_clk_get() Add a resource managed clk_get() to simplify clock usage in drivers. This allows driver authors to "get and forget" about their clocks by automatically calling clk_put() when the driver is detached. This also encourages clock consumers to use the clk_get() API correctly by passing in a struct device as an argument. Change-Id: I1ed53cd3c26c0390fa30cd3c3dca14bcdd59939f Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>