summaryrefslogtreecommitdiffstats
path: root/drivers/net/jme.c
diff options
context:
space:
mode:
authorGuo-Fu Tseng <cooldavid@cooldavid.org>2011-06-27 19:23:34 +0000
committerDavid S. Miller <davem@davemloft.net>2011-06-30 22:13:16 -0700
commitaab6fb82b1912a312f7547c92ac8d4ecb072e807 (patch)
treee01cc1728c0e361ad51baf15ddb86b5c117b1725 /drivers/net/jme.c
parentb21f3c7ed98a153865a7094af7d85d84c188667e (diff)
downloadlinux-aab6fb82b1912a312f7547c92ac8d4ecb072e807.tar.bz2
jme: Fix compile warning introduced by new pm macro
SIMPLE_DEV_PM_OPS is using SET_SYSTEM_SLEEP_PM_OPS and SET_SYSTEM_SLEEP_PM_OPS is empty when CONFIG_PM_SLEEP is not defined. Switching #ifdef CONFIG_PM to #ifdef CONFIG_PM_SLEEP Signed-off-by: Guo-Fu Tseng <cooldavid@cooldavid.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/jme.c')
-rw-r--r--drivers/net/jme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/jme.c b/drivers/net/jme.c
index b5b174a8c149..2ce93393320c 100644
--- a/drivers/net/jme.c
+++ b/drivers/net/jme.c
@@ -3135,7 +3135,7 @@ jme_shutdown(struct pci_dev *pdev)
pci_pme_active(pdev, true);
}
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
static int jme_suspend(struct device *dev)
{
struct pci_dev *pdev = to_pci_dev(dev);