netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] skge: fix warning when CONFIG_PM is defined but not CONFIG_PM_SLEEP
@ 2012-01-03 17:34 Daniel Halperin
  2012-01-03 18:53 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Halperin @ 2012-01-03 17:34 UTC (permalink / raw)
  To: netdev; +Cc: shemminger

drivers/net/ethernet/marvell/skge.c:4046: warning: ‘skge_suspend’ defined but not used
drivers/net/ethernet/marvell/skge.c:4071: warning: ‘skge_resume’ defined but not used

Signed-off-by: Daniel Halperin <dhalperi@cs.washington.edu>
Cc: Stephen Hemminger <shemminger@linux-foundation.org>
---
 drivers/net/ethernet/marvell/skge.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/marvell/skge.c b/drivers/net/ethernet/marvell/skge.c
index dea0cb4..e6a007a 100644
--- a/drivers/net/ethernet/marvell/skge.c
+++ b/drivers/net/ethernet/marvell/skge.c
@@ -4042,7 +4042,7 @@ static void __devexit skge_remove(struct pci_dev *pdev)
 	pci_set_drvdata(pdev, NULL);
 }
 
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
 static int skge_suspend(struct device *dev)
 {
 	struct pci_dev *pdev = to_pci_dev(dev);
@@ -4104,7 +4104,7 @@ static SIMPLE_DEV_PM_OPS(skge_pm_ops, skge_suspend, skge_resume);
 #else
 
 #define SKGE_PM_OPS NULL
-#endif
+#endif /* CONFIG_PM_SLEEP */
 
 static void skge_shutdown(struct pci_dev *pdev)
 {
-- 
1.7.0.4

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

* Re: [PATCH] skge: fix warning when CONFIG_PM is defined but not CONFIG_PM_SLEEP
  2012-01-03 17:34 [PATCH] skge: fix warning when CONFIG_PM is defined but not CONFIG_PM_SLEEP Daniel Halperin
@ 2012-01-03 18:53 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2012-01-03 18:53 UTC (permalink / raw)
  To: dhalperi; +Cc: netdev, shemminger

From: Daniel Halperin <dhalperi@cs.washington.edu>
Date: Tue, 3 Jan 2012 09:34:48 -0800

> drivers/net/ethernet/marvell/skge.c:4046: warning: ‘skge_suspend’ defined but not used
> drivers/net/ethernet/marvell/skge.c:4071: warning: ‘skge_resume’ defined but not used
> 
> Signed-off-by: Daniel Halperin <dhalperi@cs.washington.edu>
> Cc: Stephen Hemminger <shemminger@linux-foundation.org>

Applied to net-next, thanks.

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

end of thread, other threads:[~2012-01-03 18:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-03 17:34 [PATCH] skge: fix warning when CONFIG_PM is defined but not CONFIG_PM_SLEEP Daniel Halperin
2012-01-03 18:53 ` 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).