]> git.baikalelectronics.ru Git - kernel.git/commit
PM: Add convenience macro to make switching to dev_pm_ops less error-prone
authorAlbin Tonnerre <albin.tonnerre@free-electrons.com>
Wed, 5 Aug 2009 21:59:59 +0000 (23:59 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 14 Sep 2009 18:27:00 +0000 (20:27 +0200)
commit157f6b16afa3a6fffe4a7a21d164e6da197a3abd
tree9add05fac4a177024f6de235b5d9b82054e24b27
parentfd33b0a6c879ee99a8f9e2a8f9f5c67b17c11a58
PM: Add convenience macro to make switching to dev_pm_ops less error-prone

In a number of cases, the .suspend, .freeze, .poweroff and .resume,
.thaw, .restore functions are identical. However, they all need to be
assigned to avoid regressionsm as the previous code called .suspend
resp. .resume in all those cases. SIMPLE_DEV_PM_OPS helps to deal
with this case.

[rjw: Changed the name of the macro and added the comment explaining its
 purpose.]

Signed-off-by: Albin Tonnerre <albin.tonnerre@free-electrons.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
include/linux/pm.h