summaryrefslogtreecommitdiffstats
path: root/drivers/net/atl1c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-05-20 00:44:41 +0200
committerDavid S. Miller <davem@davemloft.net>2011-05-20 00:44:41 +0200
commitd187c1aab8d30771bb781c745b150f6159467d6f (patch)
tree6aac0f68c7bd1f80874ca9453d61ebb5320292ff /drivers/net/atl1c
parentrxrpc: Fix set but unused variable 'usage' in rxrpc_get_peer(). (diff)
downloadlinux-d187c1aab8d30771bb781c745b150f6159467d6f.tar.xz
linux-d187c1aab8d30771bb781c745b150f6159467d6f.zip
atl1c: atl1c_resume() is only used when CONFIG_PM_SLEEP is defined.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/atl1c')
-rw-r--r--drivers/net/atl1c/atl1c_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/atl1c/atl1c_main.c b/drivers/net/atl1c/atl1c_main.c
index 48868de386a0..1269ba5d6e56 100644
--- a/drivers/net/atl1c/atl1c_main.c
+++ b/drivers/net/atl1c/atl1c_main.c
@@ -2537,6 +2537,7 @@ static int atl1c_suspend(struct device *dev)
return 0;
}
+#ifdef CONFIG_PM_SLEEP
static int atl1c_resume(struct device *dev)
{
struct pci_dev *pdev = to_pci_dev(dev);
@@ -2563,6 +2564,7 @@ static int atl1c_resume(struct device *dev)
return 0;
}
+#endif
static void atl1c_shutdown(struct pci_dev *pdev)
{