mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
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>
This commit is contained in:
parent
53159d06cb
commit
04da2cf9bb
1 changed files with 2 additions and 0 deletions
|
@ -3893,6 +3893,7 @@ static int qlge_suspend(struct pci_dev *pdev, pm_message_t state)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_PM
|
||||||
static int qlge_resume(struct pci_dev *pdev)
|
static int qlge_resume(struct pci_dev *pdev)
|
||||||
{
|
{
|
||||||
struct net_device *ndev = pci_get_drvdata(pdev);
|
struct net_device *ndev = pci_get_drvdata(pdev);
|
||||||
|
@ -3921,6 +3922,7 @@ static int qlge_resume(struct pci_dev *pdev)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif /* CONFIG_PM */
|
||||||
|
|
||||||
static void qlge_shutdown(struct pci_dev *pdev)
|
static void qlge_shutdown(struct pci_dev *pdev)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue