diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2008-03-20 00:39:13 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-04-20 06:10:26 +0400 |
commit | 9a3df1f7de0ecaf77a1dde86f2a4dc020f37f87e (patch) | |
tree | 599a884cf4b42c516226c0f845cd32d0295b74ed /include/linux/device.h | |
parent | d288e47c471e1090e80c62ad95882fafbf3f499d (diff) | |
download | linux-9a3df1f7de0ecaf77a1dde86f2a4dc020f37f87e.tar.xz |
PM: Convert wakeup flag accessors to inline functions
This patch (as1058) improves the wakeup macros in include/linux/pm.h.
All but the trivial ones are converted to inline routines, which
requires moving them to a separate header file since they depend on
the definition of struct device.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index d57661129cb2..d7a1ae063b65 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -475,6 +475,9 @@ struct device { void (*release)(struct device *dev); }; +/* Get the wakeup routines, which depend on struct device */ +#include <linux/pm_wakeup.h> + #ifdef CONFIG_NUMA static inline int dev_to_node(struct device *dev) { |