Commit faa85aa2 authored by Daniel Halperin's avatar Daniel Halperin Committed by David S. Miller

skge: fix warning when CONFIG_PM is defined but not CONFIG_PM_SLEEP

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: default avatarDaniel Halperin <dhalperi@cs.washington.edu>
Cc: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 86d8c07f
...@@ -4042,7 +4042,7 @@ static void __devexit skge_remove(struct pci_dev *pdev) ...@@ -4042,7 +4042,7 @@ static void __devexit skge_remove(struct pci_dev *pdev)
pci_set_drvdata(pdev, NULL); pci_set_drvdata(pdev, NULL);
} }
#ifdef CONFIG_PM #ifdef CONFIG_PM_SLEEP
static int skge_suspend(struct device *dev) static int skge_suspend(struct device *dev)
{ {
struct pci_dev *pdev = to_pci_dev(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); ...@@ -4104,7 +4104,7 @@ static SIMPLE_DEV_PM_OPS(skge_pm_ops, skge_suspend, skge_resume);
#else #else
#define SKGE_PM_OPS NULL #define SKGE_PM_OPS NULL
#endif #endif /* CONFIG_PM_SLEEP */
static void skge_shutdown(struct pci_dev *pdev) static void skge_shutdown(struct pci_dev *pdev)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment