]> git.baikalelectronics.ru Git - kernel.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)
commit34eccd7eeaf3a61f06fc0f598d782000a6000a0e
treea6741c5aa077d5d392a5c94470c1c9774dc43524
parent18ca0af2c24833f855a4791a5a561251dc5d73d8
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