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)
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>

No differences found