]> git.karo-electronics.de Git - linux-beck.git/commit
PM / clk: Add support for adding a specific clock from device-tree
authorJon Hunter <jonathanh@nvidia.com>
Tue, 21 Jun 2016 10:33:25 +0000 (11:33 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 Jun 2016 22:42:10 +0000 (00:42 +0200)
commit498b5fdd40dd3881a3119d11bff8441cfd902850
treea6741c5aa077d5d392a5c94470c1c9774dc43524
parent29b968b2af7782fe879190cd43c10261506ebc11
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>
drivers/base/power/clock_ops.c
include/linux/pm_clock.h