Skip to content

Commit

Permalink
PCI: fix tlan build when CONFIG_PCI is not enabled
Browse files Browse the repository at this point in the history
When CONFIG_PCI is not enabled, tlan.c has a build error:
drivers/net/tlan.c:503: error: implicit declaration of function 'pci_wake_from_d3'

so add an inline function stub for this function to pci.h when
PCI is not enabled, similar to other stubbed PCI functions.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
  • Loading branch information
Randy Dunlap authored and Jesse Barnes committed Feb 16, 2011
1 parent b99af4b commit 3449248
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/linux/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -1191,6 +1191,11 @@ static inline int pci_set_power_state(struct pci_dev *dev, pci_power_t state)
return 0;
}

static inline int pci_wake_from_d3(struct pci_dev *dev, bool enable)
{
return 0;
}

static inline pci_power_t pci_choose_state(struct pci_dev *dev,
pm_message_t state)
{
Expand Down

0 comments on commit 3449248

Please sign in to comment.