]> git.baikalelectronics.ru Git - kernel.git/commit
PM / Runtime: Handle clocks correctly if CONFIG_PM_RUNTIME is unset
authorRafael J. Wysocki <rjw@sisk.pl>
Tue, 21 Jun 2011 21:24:33 +0000 (23:24 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Tue, 21 Jun 2011 21:24:33 +0000 (23:24 +0200)
commit6593a048ecdcd11122d987be348059ab20ea69d3
tree9e9c6d6b4c8d241ce392d31c2fb8ca07f9c9b753
parentd390f14bc874a0b83b80f0b6176c086c1f428b28
PM / Runtime: Handle clocks correctly if CONFIG_PM_RUNTIME is unset

Commit c01ea728754fc95869a31915b62df055c9b9d9ee (PM / Runtime:
Generic clock manipulation rountines for runtime PM (v6)) converted
the shmobile platform to using generic code for runtime PM clock
management, but it changed the behavior for CONFIG_PM_RUNTIME unset
incorrectly.

Specifically, for CONFIG_PM_RUNTIME unset pm_runtime_clk_notify()
should enable clocks for action equal to BUS_NOTIFY_BIND_DRIVER and
it should disable them for action equal to BUS_NOTIFY_UNBOUND_DRIVER
(instead of BUS_NOTIFY_ADD_DEVICE and BUS_NOTIFY_DEL_DEVICE,
respectively).  Make this function behave as appropriate.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Magnus Damm <damm@opensource.se>
drivers/base/power/clock_ops.c