netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next-2.6 1/2] jme: Fix compile warning introduced by new pm macro
@ 2011-06-28  5:23 Guo-Fu Tseng
  2011-06-28  5:23 ` [PATCH net-next-2.6 2/2] jme: Cleanup PM operations after using new PM API Guo-Fu Tseng
  2011-07-01  6:54 ` [PATCH net-next-2.6 1/2] jme: Fix compile warning introduced by new pm macro David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Guo-Fu Tseng @ 2011-06-28  5:23 UTC (permalink / raw)
  To: David Miller; +Cc: Guo-Fu Tseng, linux-netdev, Aries Lee, Devinchiu

From: Guo-Fu Tseng <cooldavid@cooldavid.org>

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>
---
 drivers/net/jme.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/jme.c b/drivers/net/jme.c
index b5b174a..2ce9339 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);
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-07-01  6:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-28  5:23 [PATCH net-next-2.6 1/2] jme: Fix compile warning introduced by new pm macro Guo-Fu Tseng
2011-06-28  5:23 ` [PATCH net-next-2.6 2/2] jme: Cleanup PM operations after using new PM API Guo-Fu Tseng
2011-06-28 11:19   ` Guo-Fu Tseng
2011-07-01  6:54 ` [PATCH net-next-2.6 1/2] jme: Fix compile warning introduced by new pm macro David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).