]> Git Repo - linux.git/commitdiff
skge: fix warning when CONFIG_PM is defined but not CONFIG_PM_SLEEP
authorDaniel Halperin <[email protected]>
Tue, 3 Jan 2012 18:53:16 +0000 (13:53 -0500)
committerDavid S. Miller <[email protected]>
Tue, 3 Jan 2012 18:53:16 +0000 (13:53 -0500)
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 <[email protected]>
Cc: Stephen Hemminger <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/marvell/skge.c

index b3f6368130893366d46db9c4f365dae007902372..18a87a57fc0aa4ca9ff3bb406a9633fc281bc308 100644 (file)
@@ -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)
 {
This page took 0.063495 seconds and 4 git commands to generate.