Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77d149c4 authored by Daniel J Blueman's avatar Daniel J Blueman Committed by David S. Miller
Browse files

bnx2: Don't build unused suspend/resume functions not enabled



When CONFIG_PM_SLEEP isn't enabled, bnx2_suspend/resume are unused; don't
build them when they aren't used.

Signed-off-by: default avatarDaniel J Blueman <daniel@quora.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 30f78d8e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8627,6 +8627,7 @@ bnx2_remove_one(struct pci_dev *pdev)
	pci_disable_device(pdev);
}

#ifdef CONFIG_PM_SLEEP
static int
bnx2_suspend(struct device *device)
{
@@ -8665,7 +8666,6 @@ bnx2_resume(struct device *device)
	return 0;
}

#ifdef CONFIG_PM_SLEEP
static SIMPLE_DEV_PM_OPS(bnx2_pm_ops, bnx2_suspend, bnx2_resume);
#define BNX2_PM_OPS (&bnx2_pm_ops)