]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PM / clk: don't leave clocks enabled when driver not bound
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 7 Jan 2016 10:49:31 +0000 (12:49 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 8 Jan 2016 00:08:27 +0000 (01:08 +0100)
commitd35818a9153e7f230fd65dc935e001a1b9bc08ff
tree96b701744a1e1f0c196b35b9188a77a6ba3c4d59
parent04a407f6b129b6e35de3250c313976a3a154476e
PM / clk: don't leave clocks enabled when driver not bound

There is a new notification BUS_NOTIFY_DRIVER_NOT_BOUND that is issued when
driver fails during binding. In such case pm_clk_notify(), when PM_CLK=n,
leaves clocks enabled. Undo operations that have been done in
BUS_NOTIFY_BIND_DRIVER case.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/clock_ops.c