diff options
author | Daniel J Blueman <daniel@quora.org> | 2014-04-11 10:14:26 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-04-14 18:40:00 +0200 |
commit | 77d149c4eb8964b6bd4a929b102a867505add612 (patch) | |
tree | 0d8f4543f6871e1204104192973f154f1210d575 /drivers/net/ethernet | |
parent | ipv6: Limit mtu to 65575 bytes (diff) | |
download | linux-77d149c4eb8964b6bd4a929b102a867505add612.tar.xz linux-77d149c4eb8964b6bd4a929b102a867505add612.zip |
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: Daniel J Blueman <daniel@quora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2.c b/drivers/net/ethernet/broadcom/bnx2.c index a8efb18e42fa..0ab83708b6a1 100644 --- a/drivers/net/ethernet/broadcom/bnx2.c +++ b/drivers/net/ethernet/broadcom/bnx2.c @@ -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) |