diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2011-02-14 15:27:50 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-02-16 14:46:09 -0500 |
commit | 3449248c8731e8474980856d76bbf9bac9b0682f (patch) | |
tree | b849554444b0b0fa923ec46f7cf168590d8d6b81 /include | |
parent | b99af4b002e4908d1a5cdaf424529bdf1dc69768 (diff) |
PCI: fix tlan build when CONFIG_PCI is not enabled
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pci.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 559d02897075..c77e730bcd38 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -1191,6 +1191,11 @@ static inline int pci_set_power_state(struct pci_dev *dev, pci_power_t state) | |||
1191 | return 0; | 1191 | return 0; |
1192 | } | 1192 | } |
1193 | 1193 | ||
1194 | static inline int pci_wake_from_d3(struct pci_dev *dev, bool enable) | ||
1195 | { | ||
1196 | return 0; | ||
1197 | } | ||
1198 | |||
1194 | static inline pci_power_t pci_choose_state(struct pci_dev *dev, | 1199 | static inline pci_power_t pci_choose_state(struct pci_dev *dev, |
1195 | pm_message_t state) | 1200 | pm_message_t state) |
1196 | { | 1201 | { |