diff options
author | Jon Hunter <jonathanh@nvidia.com> | 2016-03-15 11:33:40 +0000 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-03-17 02:32:04 +0100 |
commit | 02113ba93ea414b7113d64e42b87dc0720e3e578 (patch) | |
tree | d4a1c34d81214dbd79695c80b90a621d0d2f364f /include/linux/rtc.h | |
parent | b562e44f507e863c6792946e4e1b1449fbbac85d (diff) | |
download | lwn-02113ba93ea414b7113d64e42b87dc0720e3e578.tar.gz lwn-02113ba93ea414b7113d64e42b87dc0720e3e578.zip |
PM / clk: Add support for obtaining clocks from device-tree
The PM clocks framework requires clients to pass either a con-id or a
valid clk pointer in order to add a clock to a device. Add a new
function of_pm_clk_add_clks() to allows device clocks to be retrieved
from device-tree and populated for a given device. Note that it is
not necessary to make the compilation of this new function dependent
upon CONFIG_OF because there are stubs functions for the device-tree
APIs used.
In order to handle errors encountered when adding clocks from
device-tree, add a function pm_clk_remove_clk() to remove any clocks
(using a pointer to the clk structure) that have been added
successfully before the error occurred.
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/rtc.h')
0 files changed, 0 insertions, 0 deletions