Skip to content

Commit

Permalink
qlge: Protect qlge_resume() with CONFIG_PM
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Sep 19, 2008
1 parent 53159d0 commit 04da2cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/qlge/qlge_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3893,6 +3893,7 @@ static int qlge_suspend(struct pci_dev *pdev, pm_message_t state)
return 0;
}

#ifdef CONFIG_PM
static int qlge_resume(struct pci_dev *pdev)
{
struct net_device *ndev = pci_get_drvdata(pdev);
Expand Down Expand Up @@ -3921,6 +3922,7 @@ static int qlge_resume(struct pci_dev *pdev)

return 0;
}
#endif /* CONFIG_PM */

static void qlge_shutdown(struct pci_dev *pdev)
{
Expand Down

0 comments on commit 04da2cf

Please sign in to comment.