]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] orinoco: eliminate the suspend/resume functions if CONFIG_PM is unset
authorPavel Roskin <proski@gnu.org>
Mon, 1 May 2006 06:13:30 +0000 (02:13 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 5 May 2006 21:10:40 +0000 (17:10 -0400)
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/orinoco_pci.h

index b05a9a5b1f5fb97fbdcee5ad445d58343c7a0650..4e8da4ea29f1f28cd469842da3cbd762f4534108 100644 (file)
@@ -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 */