PM / clock_ops: make __pm_clk_enable more generic
authorStrashko, Grygorii <grygorii.strashko@ti.com>
Thu, 6 Nov 2014 13:51:01 +0000 (15:51 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 7 Nov 2014 00:47:48 +0000 (01:47 +0100)
commit471f7707b6f0b18b6aa81119ed01525d9e712427
tree588c036dc90337a7e18f53c6995043ddfca6c8ac
parent245bd6f6af8a62a2e2e14976e5ef3dc2b82ec153
PM / clock_ops: make __pm_clk_enable more generic

Now there are two places in code which do the same things,
so allow __pm_clk_enable() to accept pointer on pm_clock_entry
structure as second parameter instead of pointer on clock and
remove duplicated code.

Also, updated function intended to be used by following patch.

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