]> git.baikalelectronics.ru Git - kernel.git/commit
PM / Domains: Fix build for CONFIG_PM_SLEEP unset
authorRafael J. Wysocki <rjw@sisk.pl>
Fri, 13 Jan 2012 23:39:25 +0000 (00:39 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 13 Jan 2012 23:39:25 +0000 (00:39 +0100)
commitfa0d949e670bd5255c99c2c4c8b24e0f2780c632
treeabf2a89b7c4c60e2165a347fcbf2dd892c12e8bb
parent0bf47032015b3325674929ab87ff64c4ff99587b
PM / Domains: Fix build for CONFIG_PM_SLEEP unset

Some callback functions defined in drivers/base/power/domain.c are
only necessary if CONFIG_PM_SLEEP is set and they call some other
functions that are only available in that case.  For this reason,
they should not be compiled at all when CONFIG_PM_SLEEP is not set.

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