From: Randy Dunlap Date: Mon, 14 Feb 2011 20:27:50 +0000 (-0800) Subject: PCI: fix tlan build when CONFIG_PCI is not enabled X-Git-Tag: v2.6.39-rc1~416^2~11 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=3449248c8731e8474980856d76bbf9bac9b0682f;p=~shefty%2Frdma-dev.git 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 Acked-by: David S. Miller Acked-by: Sakari Ailus Signed-off-by: Jesse Barnes --- diff --git a/include/linux/pci.h b/include/linux/pci.h index 559d0289707..c77e730bcd3 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) 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) {