netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* e1000e: Fix build with CONFIG_PM disabled.
@ 2010-03-17  6:41 David Miller
  2010-03-17 17:57 ` Tantilov, Emil S
  0 siblings, 1 reply; 9+ messages in thread
From: David Miller @ 2010-03-17  6:41 UTC (permalink / raw)
  To: rjw; +Cc: netdev


I had to add the following patch to fix the build after
your changes.

Thanks.

e1000e: Fix build with CONFIG_PM disabled.

Signed-off-by: David S. Miller <davem@davemloft.net>
---
 drivers/net/e1000e/netdev.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c
index 79b33c5..b96532a 100644
--- a/drivers/net/e1000e/netdev.c
+++ b/drivers/net/e1000e/netdev.c
@@ -5475,6 +5475,7 @@ static DEFINE_PCI_DEVICE_TABLE(e1000_pci_tbl) = {
 };
 MODULE_DEVICE_TABLE(pci, e1000_pci_tbl);
 
+#ifdef CONFIG_PM
 static const struct dev_pm_ops e1000_pm_ops = {
 	.suspend  = e1000_suspend,
 	.resume   = e1000_resume,
@@ -5486,6 +5487,7 @@ static const struct dev_pm_ops e1000_pm_ops = {
 	.runtime_resume = e1000_runtime_resume,
 	.runtime_idle = e1000_idle,
 };
+#endif
 
 /* PCI Device API Driver */
 static struct pci_driver e1000_driver = {
-- 
1.6.6.1


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

end of thread, other threads:[~2010-03-18  6:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-17  6:41 e1000e: Fix build with CONFIG_PM disabled David Miller
2010-03-17 17:57 ` Tantilov, Emil S
2010-03-17 18:17   ` David Miller
2010-03-17 20:34     ` Rafael J. Wysocki
2010-03-17 22:39     ` Rafael J. Wysocki
2010-03-17 23:37       ` Jesse Brandeburg
2010-03-17 23:51         ` Rafael J. Wysocki
2010-03-18  6:11           ` David Miller
2010-03-18  6:12       ` 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).