Skip to content

Commit

Permalink
[PATCH] orinoco: eliminate the suspend/resume functions if CONFIG_PM …
Browse files Browse the repository at this point in the history
…is unset

Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Pavel Roskin authored and John W. Linville committed May 5, 2006
1 parent 6cbaa33 commit 95047dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/wireless/orinoco_pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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 */

0 comments on commit 95047dd

Please sign in to comment.