projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53159d0
)
qlge: Protect qlge_resume() with CONFIG_PM
author
David S. Miller
<davem@davemloft.net>
Fri, 19 Sep 2008 23:14:24 +0000
(16:14 -0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 19 Sep 2008 23:14:24 +0000
(16:14 -0700)
Fixes the following build warning:
drivers/net/qlge/qlge_main.c:3897: warning: ‘qlge_resume’ defined but not used
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlge/qlge_main.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/qlge/qlge_main.c
b/drivers/net/qlge/qlge_main.c
index ad878e2b9ded7e5c785680dc9172b7aa739da98f..3af822b6226ec822dc385b7956c25c100170170a 100644
(file)
--- a/
drivers/net/qlge/qlge_main.c
+++ b/
drivers/net/qlge/qlge_main.c
@@
-3893,6
+3893,7
@@
static int qlge_suspend(struct pci_dev *pdev, pm_message_t state)
return 0;
}
+#ifdef CONFIG_PM
static int qlge_resume(struct pci_dev *pdev)
{
struct net_device *ndev = pci_get_drvdata(pdev);
@@
-3921,6
+3922,7
@@
static int qlge_resume(struct pci_dev *pdev)
return 0;
}
+#endif /* CONFIG_PM */
static void qlge_shutdown(struct pci_dev *pdev)
{
This page took
0.028288 seconds
and
5
git commands to generate.