summaryrefslogtreecommitdiffstats
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2008-03-19 22:39:13 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2008-04-19 19:10:26 -0700
commit9a3df1f7de0ecaf77a1dde86f2a4dc020f37f87e (patch)
tree599a884cf4b42c516226c0f845cd32d0295b74ed /include/linux/device.h
parentd288e47c471e1090e80c62ad95882fafbf3f499d (diff)
downloadlinux-9a3df1f7de0ecaf77a1dde86f2a4dc020f37f87e.tar.gz
linux-9a3df1f7de0ecaf77a1dde86f2a4dc020f37f87e.tar.bz2
linux-9a3df1f7de0ecaf77a1dde86f2a4dc020f37f87e.zip
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.h3
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)
{