e1000: keep .suspend and .resume driver methods in CONFIG_PM
authorAuke Kok <auke\-jan.h.kok@intel.com>
Wed, 27 Sep 2006 19:53:19 +0000 (12:53 -0700)
committerAuke Kok <juke-jan.h.kok@intel.com>
Wed, 27 Sep 2006 19:53:19 +0000 (12:53 -0700)
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
drivers/net/e1000/e1000_main.c

index bd673802e8ce1a71fc48d71ba311b56c03f91a75..0aaf9afe31ec35655126f3c0a1965ae0e2746b51 100644 (file)
@@ -211,9 +211,9 @@ static struct pci_driver e1000_driver = {
        .id_table = e1000_pci_tbl,
        .probe    = e1000_probe,
        .remove   = __devexit_p(e1000_remove),
+#ifdef CONFIG_PM
        /* Power Managment Hooks */
        .suspend  = e1000_suspend,
-#ifdef CONFIG_PM
        .resume   = e1000_resume,
 #endif
        .shutdown = e1000_shutdown,