]> git.karo-electronics.de Git - karo-tx-linux.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>
Sat, 17 Dec 2011 23:34:01 +0000 (00:34 +0100)
commit1c0a3bf46c15026c6af69661696dbb58ff268424
treeeb59a799d6d748effc4ae1da66d78c93889710bf
parent9d1d5518366a26faadbb784dba51b6f15c131fae
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