PM / clock_ops: Add pm_clk_add_clk()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 6 Nov 2014 13:51:00 +0000 (15:51 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 7 Nov 2014 00:46:51 +0000 (01:46 +0100)
commit245bd6f6af8a62a2e2e14976e5ef3dc2b82ec153
tree4fa4b90e9903f9ad44072b3147153c1a567eaa50
parent0df1f2487d2f0d04703f142813d53615d62a1da4
PM / clock_ops: Add pm_clk_add_clk()

The existing pm_clk_add() allows to pass a clock by con_id. However,
when referring to a specific clock from DT, no con_id is available.

Add pm_clk_add_clk(), which allows to specify the struct clk * directly.
The will will increment refcount on clock pointer, so the caller has
to use clk_put() on clock pointer when done.

Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/clock_ops.c
include/linux/pm_clock.h