Skip to content

Commit

Permalink
PCI: include linux/pm_wakeup.h for device_set_wakeup_capable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Rothwell authored and Jesse Barnes committed Jul 14, 2008
1 parent c157dfa commit c300bd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <linux/string.h>
#include <linux/log2.h>
#include <linux/pci-aspm.h>
#include <linux/pm_wakeup.h>
#include <asm/dma.h> /* isa_dma_bridge_buggy */
#include "pci.h"

Expand Down
2 changes: 2 additions & 0 deletions include/linux/pm_wakeup.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c300bd2

Please sign in to comment.