]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite0c3f51a80860e14af6c9b346bac2fe13d331bae
tree44500e7eba98e682663ab253e4ba7edff7e9f875
parent9b65761f2b767455cd2f22a246ddf5d2025cb7f9
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