From: Bruce Allan Date: Tue, 31 Jan 2012 06:38:04 +0000 (+0000) Subject: e1000e: add missing initializers reported when compiling with W=1 X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~347 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=15f3feb194bc912bf42a7308bc9b852a38a57060;p=users%2Fjedix%2Flinux-maple.git e1000e: add missing initializers reported when compiling with W=1 warning: missing initializer (cherry picked from commit f36bb6cacd3bcbab9605e06f585ee8f1ea450876) Signed-off-by: Bruce Allan Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher Signed-off-by: Joe Jin --- diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c index e3bea4181f067..c4b1b98c42ba8 100644 --- a/drivers/net/e1000e/netdev.c +++ b/drivers/net/e1000e/netdev.c @@ -137,7 +137,7 @@ static const struct e1000_reg_info e1000_reg_info_tbl[] = { {E1000_TDFPC, "TDFPC"}, /* List Terminator */ - {} + {0, NULL} }; /* @@ -6490,7 +6490,7 @@ static DEFINE_PCI_DEVICE_TABLE(e1000_pci_tbl) = { { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH2_LV_LM), board_pch2lan }, { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH2_LV_V), board_pch2lan }, - { } /* terminate list */ + { 0, 0, 0, 0, 0, 0, 0 } /* terminate list */ }; MODULE_DEVICE_TABLE(pci, e1000_pci_tbl); @@ -6509,7 +6509,9 @@ static struct pci_driver e1000_driver = { .probe = e1000_probe, .remove = __devexit_p(e1000_remove), #ifdef CONFIG_PM - .driver.pm = &e1000_pm_ops, + .driver = { + .pm = &e1000_pm_ops, + }, #endif .shutdown = e1000_shutdown, .err_handler = &e1000_err_handler