diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-07-10 04:16:44 +0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-07-15 01:30:21 +0400 |
commit | c300bd2fb583afb6d68804afd38bc90b31310d95 (patch) | |
tree | b515c200eaaedb2525a70aa26f71469e084f1549 /include | |
parent | c157dfa3e4aea5775389f2f4d53c040bc8813af1 (diff) | |
download | linux-c300bd2fb583afb6d68804afd38bc90b31310d95.tar.xz |
PCI: include linux/pm_wakeup.h for device_set_wakeup_capable
drivers/pci/pci.c needs pm_wakeup.h since it uses device_set_wakup_capable().
The latter also needs to be stubbed out for !CONFIG_PM.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pm_wakeup.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pm_wakeup.h b/include/linux/pm_wakeup.h index 3af0c8d05cdc..0aae7776185e 100644 --- a/include/linux/pm_wakeup.h +++ b/include/linux/pm_wakeup.h @@ -63,6 +63,8 @@ static inline void device_init_wakeup(struct device *dev, int val) dev->power.can_wakeup = !!val; } +static inline void device_set_wakeup_capable(struct device *dev, int val) { } + static inline int device_can_wakeup(struct device *dev) { return dev->power.can_wakeup; |