Commit 01542cd1 authored by Dhananjay Phadke's avatar Dhananjay Phadke Committed by David S. Miller

netxen: fix build with without CONFIG_PM

wrap pci suspend() and resume() with CONFIG_PM check.
Signed-off-by: default avatarDhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4d900f9d
...@@ -1178,6 +1178,7 @@ static void __devexit netxen_nic_remove(struct pci_dev *pdev) ...@@ -1178,6 +1178,7 @@ static void __devexit netxen_nic_remove(struct pci_dev *pdev)
free_netdev(netdev); free_netdev(netdev);
} }
#ifdef CONFIG_PM
static int static int
netxen_nic_suspend(struct pci_dev *pdev, pm_message_t state) netxen_nic_suspend(struct pci_dev *pdev, pm_message_t state)
{ {
...@@ -1242,6 +1243,7 @@ netxen_nic_resume(struct pci_dev *pdev) ...@@ -1242,6 +1243,7 @@ netxen_nic_resume(struct pci_dev *pdev)
return 0; return 0;
} }
#endif
static int netxen_nic_open(struct net_device *netdev) static int netxen_nic_open(struct net_device *netdev)
{ {
...@@ -1771,8 +1773,10 @@ static struct pci_driver netxen_driver = { ...@@ -1771,8 +1773,10 @@ static struct pci_driver netxen_driver = {
.id_table = netxen_pci_tbl, .id_table = netxen_pci_tbl,
.probe = netxen_nic_probe, .probe = netxen_nic_probe,
.remove = __devexit_p(netxen_nic_remove), .remove = __devexit_p(netxen_nic_remove),
#ifdef CONFIG_PM
.suspend = netxen_nic_suspend, .suspend = netxen_nic_suspend,
.resume = netxen_nic_resume .resume = netxen_nic_resume
#endif
}; };
/* Driver Registration on NetXen card */ /* Driver Registration on NetXen card */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment