PM / Sleep: Make pm_op() and pm_noirq_op() return callback pointers
authorRafael J. Wysocki <rjw@sisk.pl>
Sat, 17 Dec 2011 23:34:01 +0000 (00:34 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Wed, 21 Dec 2011 21:00:56 +0000 (22:00 +0100)
commit9cf519d1c15fa05a538c2b3963c5f3903daf765a
tree44500e7eba98e682663ab253e4ba7edff7e9f875
parentb00f4dc5ff022cb9cbaffd376d9454d7fa1e496f
PM / Sleep: Make pm_op() and pm_noirq_op() return callback pointers

Make the pm_op() and pm_noirq_op() functions return pointers to
appropriate callbacks instead of executing those callbacks and
returning their results.

This change is required for a subsequent modification that will
execute the corresponding driver callback if the subsystem
callback returned by either pm_op(), or pm_noirq_op() is NULL.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/main.c