diff options
-rw-r--r-- | drivers/net/wireless/orinoco_pci.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/orinoco_pci.h b/drivers/net/wireless/orinoco_pci.h index b05a9a5b1f5f..4e8da4ea29f1 100644 --- a/drivers/net/wireless/orinoco_pci.h +++ b/drivers/net/wireless/orinoco_pci.h | |||
@@ -44,6 +44,7 @@ static inline void orinoco_pci_setup_netdev(struct net_device *dev, | |||
44 | pci_name(pdev), pdev->irq, range_type, start, end); | 44 | pci_name(pdev), pdev->irq, range_type, start, end); |
45 | } | 45 | } |
46 | 46 | ||
47 | #ifdef CONFIG_PM | ||
47 | static int orinoco_pci_suspend(struct pci_dev *pdev, pm_message_t state) | 48 | static int orinoco_pci_suspend(struct pci_dev *pdev, pm_message_t state) |
48 | { | 49 | { |
49 | struct net_device *dev = pci_get_drvdata(pdev); | 50 | struct net_device *dev = pci_get_drvdata(pdev); |
@@ -121,5 +122,9 @@ static int orinoco_pci_resume(struct pci_dev *pdev) | |||
121 | 122 | ||
122 | return 0; | 123 | return 0; |
123 | } | 124 | } |
125 | #else | ||
126 | #define orinoco_pci_suspend NULL | ||
127 | #define orinoco_pci_resume NULL | ||
128 | #endif | ||
124 | 129 | ||
125 | #endif /* _ORINOCO_PCI_H */ | 130 | #endif /* _ORINOCO_PCI_H */ |