[PATCH] e1000: Fixes e1000_suspend warning when CONFIG_PM is not enabled
authorAshutosh Naik <ashutosh_naik@adaptec.com>
Fri, 28 Oct 2005 22:14:53 +0000 (15:14 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Fri, 28 Oct 2005 23:06:44 +0000 (19:06 -0400)
drivers/net/e1000/e1000_main.c:3645: warning: `e1000_suspend' defined
but not used

Signed-off-by: Ashutosh Naik <ashutosh_naik@adaptec.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/e1000/e1000_main.c

index d97ad89f5dd22ceb84d96b1f369c9b727b241e41..efbbda7cbcbfe36382730ec7781605c18ecd3dc7 100644 (file)
@@ -191,8 +191,8 @@ static void e1000_vlan_rx_add_vid(struct net_device *netdev, uint16_t vid);
 static void e1000_vlan_rx_kill_vid(struct net_device *netdev, uint16_t vid);
 static void e1000_restore_vlan(struct e1000_adapter *adapter);
 
-static int e1000_suspend(struct pci_dev *pdev, pm_message_t state);
 #ifdef CONFIG_PM
+static int e1000_suspend(struct pci_dev *pdev, pm_message_t state);
 static int e1000_resume(struct pci_dev *pdev);
 #endif