Commit c300bd2fb583afb6d68804afd38bc90b31310d95

Authored by Stephen Rothwell
Committed by Jesse Barnes
1 parent c157dfa3e4

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>

Showing 2 changed files with 3 additions and 0 deletions Side-by-side Diff

... ... @@ -17,6 +17,7 @@
17 17 #include <linux/string.h>
18 18 #include <linux/log2.h>
19 19 #include <linux/pci-aspm.h>
  20 +#include <linux/pm_wakeup.h>
20 21 #include <asm/dma.h> /* isa_dma_bridge_buggy */
21 22 #include "pci.h"
22 23  
include/linux/pm_wakeup.h
... ... @@ -63,6 +63,8 @@
63 63 dev->power.can_wakeup = !!val;
64 64 }
65 65  
  66 +static inline void device_set_wakeup_capable(struct device *dev, int val) { }
  67 +
66 68 static inline int device_can_wakeup(struct device *dev)
67 69 {
68 70 return dev->power.can_wakeup;