Skip to content
Snippets Groups Projects
Commit 95047dd6 authored by Pavel Roskin's avatar Pavel Roskin Committed by John W. Linville
Browse files

[PATCH] orinoco: eliminate the suspend/resume functions if CONFIG_PM is unset


Signed-off-by: default avatarPavel Roskin <proski@gnu.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 6cbaa330
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment