aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlge
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-09-19 19:14:24 -0400
committerDavid S. Miller <davem@davemloft.net>2008-09-19 19:14:24 -0400
commit04da2cf9bb133355b7073be25ef3ce88c8edc135 (patch)
tree67a2b8ad0de9fd6d0968c011bf0836da5baa26c5 /drivers/net/qlge
parent53159d06cb07517422f977591264ca9bf806febb (diff)
qlge: Protect qlge_resume() with CONFIG_PM
Fixes the following build warning: drivers/net/qlge/qlge_main.c:3897: warning: ‘qlge_resume’ defined but not used Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlge')
-rw-r--r--drivers/net/qlge/qlge_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c
index ad878e2b9ded..3af822b6226e 100644
--- a/drivers/net/qlge/qlge_main.c
+++ b/drivers/net/qlge/qlge_main.c
@@ -3893,6 +3893,7 @@ static int qlge_suspend(struct pci_dev *pdev, pm_message_t state)
3893 return 0; 3893 return 0;
3894} 3894}
3895 3895
3896#ifdef CONFIG_PM
3896static int qlge_resume(struct pci_dev *pdev) 3897static int qlge_resume(struct pci_dev *pdev)
3897{ 3898{
3898 struct net_device *ndev = pci_get_drvdata(pdev); 3899 struct net_device *ndev = pci_get_drvdata(pdev);
@@ -3921,6 +3922,7 @@ static int qlge_resume(struct pci_dev *pdev)
3921 3922
3922 return 0; 3923 return 0;
3923} 3924}
3925#endif /* CONFIG_PM */
3924 3926
3925static void qlge_shutdown(struct pci_dev *pdev) 3927static void qlge_shutdown(struct pci_dev *pdev)
3926{ 3928{