summaryrefslogtreecommitdiff
path: root/include/linux/pm_clock.h
diff options
context:
space:
mode:
authorJon Hunter <jonathanh@nvidia.com>2016-06-21 13:33:25 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-06-28 01:42:10 +0300
commit498b5fdd40dd3881a3119d11bff8441cfd902850 (patch)
treea6741c5aa077d5d392a5c94470c1c9774dc43524 /include/linux/pm_clock.h
parent29b968b2af7782fe879190cd43c10261506ebc11 (diff)
downloadlinux-498b5fdd40dd3881a3119d11bff8441cfd902850.tar.xz
PM / clk: Add support for adding a specific clock from device-tree
Some drivers using the PM clocks framework need to add specific clocks from device-tree using a name by calling the functions of_clk_get_by_name() and then pm_clk_add_clk(). Rather than having drivers call both functions, add a helper function of_pm_clk_add_clk() that will call these functions so drivers can call a single function to add a specific clock from device-tree. Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/pm_clock.h')
-rw-r--r--include/linux/pm_clock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pm_clock.h b/include/linux/pm_clock.h
index 308d6044f153..09779b0ae720 100644
--- a/include/linux/pm_clock.h
+++ b/include/linux/pm_clock.h
@@ -42,6 +42,7 @@ extern int pm_clk_create(struct device *dev);
extern void pm_clk_destroy(struct device *dev);
extern int pm_clk_add(struct device *dev, const char *con_id);
extern int pm_clk_add_clk(struct device *dev, struct clk *clk);
+extern int of_pm_clk_add_clk(struct device *dev, const char *name);
extern int of_pm_clk_add_clks(struct device *dev);
extern void pm_clk_remove(struct device *dev, const char *con_id);
extern void pm_clk_remove_clk(struct device *dev, struct clk *clk);