diff options
author | Pavel Roskin <proski@gnu.org> | 2006-05-01 02:13:30 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-05-05 17:10:40 -0400 |
commit | 95047dd6d00ad00e7f1f632db6b8ecaa704cfc7e (patch) | |
tree | 7def22b19bd1e844df935c0d2ec3929adc76930d /drivers/net/wireless/orinoco_pci.h | |
parent | 6cbaa330f1022abfc7419aaa11ee1a9291f0beb0 (diff) | |
download | blackbird-op-linux-95047dd6d00ad00e7f1f632db6b8ecaa704cfc7e.tar.gz blackbird-op-linux-95047dd6d00ad00e7f1f632db6b8ecaa704cfc7e.zip |
[PATCH] orinoco: eliminate the suspend/resume functions if CONFIG_PM is unset
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/orinoco_pci.h')
-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, pci_name(pdev), pdev->irq, range_type, start, end); } +#ifdef CONFIG_PM static int orinoco_pci_suspend(struct pci_dev *pdev, pm_message_t state) { struct net_device *dev = pci_get_drvdata(pdev); @@ -121,5 +122,9 @@ static int orinoco_pci_resume(struct pci_dev *pdev) return 0; } +#else +#define orinoco_pci_suspend NULL +#define orinoco_pci_resume NULL +#endif #endif /* _ORINOCO_PCI_H */ |