diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2010-01-07 06:58:11 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-08 02:54:26 -0500 |
commit | a3aa18842a5303fc28fcc4d57dbd16618bd830a0 (patch) | |
tree | 9214348bd1e57ad0a3701314be60adf19dfef702 | |
parent | 108316c1bd0a75ba855ce4a6540c530e1562bfb0 (diff) |
drivers/net/: use DEFINE_PCI_DEVICE_TABLE()
Use DEFINE_PCI_DEVICE_TABLE() so we get place PCI ids table into correct section
in every case.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
118 files changed, 118 insertions, 118 deletions
diff --git a/drivers/net/3c59x.c b/drivers/net/3c59x.c index 39db0e96815d..5df46c230b07 100644 --- a/drivers/net/3c59x.c +++ b/drivers/net/3c59x.c | |||
@@ -375,7 +375,7 @@ static struct vortex_chip_info { | |||
375 | }; | 375 | }; |
376 | 376 | ||
377 | 377 | ||
378 | static struct pci_device_id vortex_pci_tbl[] = { | 378 | static DEFINE_PCI_DEVICE_TABLE(vortex_pci_tbl) = { |
379 | { 0x10B7, 0x5900, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_3C590 }, | 379 | { 0x10B7, 0x5900, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_3C590 }, |
380 | { 0x10B7, 0x5920, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_3C592 }, | 380 | { 0x10B7, 0x5920, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_3C592 }, |
381 | { 0x10B7, 0x5970, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_3C597 }, | 381 | { 0x10B7, 0x5970, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_3C597 }, |
diff --git a/drivers/net/8139cp.c b/drivers/net/8139cp.c index 3f452bcbfb9e..9d59654748b1 100644 --- a/drivers/net/8139cp.c +++ b/drivers/net/8139cp.c | |||
@@ -394,7 +394,7 @@ static int cp_get_eeprom(struct net_device *dev, | |||
394 | static int cp_set_eeprom(struct net_device *dev, | 394 | static int cp_set_eeprom(struct net_device *dev, |
395 | struct ethtool_eeprom *eeprom, u8 *data); | 395 | struct ethtool_eeprom *eeprom, u8 *data); |
396 | 396 | ||
397 | static struct pci_device_id cp_pci_tbl[] = { | 397 | static DEFINE_PCI_DEVICE_TABLE(cp_pci_tbl) = { |
398 | { PCI_DEVICE(PCI_VENDOR_ID_REALTEK, PCI_DEVICE_ID_REALTEK_8139), }, | 398 | { PCI_DEVICE(PCI_VENDOR_ID_REALTEK, PCI_DEVICE_ID_REALTEK_8139), }, |
399 | { PCI_DEVICE(PCI_VENDOR_ID_TTTECH, PCI_DEVICE_ID_TTTECH_MC322), }, | 399 | { PCI_DEVICE(PCI_VENDOR_ID_TTTECH, PCI_DEVICE_ID_TTTECH_MC322), }, |
400 | { }, | 400 | { }, |
diff --git a/drivers/net/8139too.c b/drivers/net/8139too.c index 907f2d583db8..321e73aabb2b 100644 --- a/drivers/net/8139too.c +++ b/drivers/net/8139too.c | |||
@@ -231,7 +231,7 @@ static const struct { | |||
231 | }; | 231 | }; |
232 | 232 | ||
233 | 233 | ||
234 | static const struct pci_device_id rtl8139_pci_tbl[] = { | 234 | static DEFINE_PCI_DEVICE_TABLE(rtl8139_pci_tbl) = { |
235 | {0x10ec, 0x8139, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL8139 }, | 235 | {0x10ec, 0x8139, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL8139 }, |
236 | {0x10ec, 0x8138, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL8139 }, | 236 | {0x10ec, 0x8138, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL8139 }, |
237 | {0x1113, 0x1211, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL8139 }, | 237 | {0x1113, 0x1211, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL8139 }, |
diff --git a/drivers/net/acenic.c b/drivers/net/acenic.c index d82a9a994753..ec624ab03e88 100644 --- a/drivers/net/acenic.c +++ b/drivers/net/acenic.c | |||
@@ -134,7 +134,7 @@ | |||
134 | #define PCI_DEVICE_ID_SGI_ACENIC 0x0009 | 134 | #define PCI_DEVICE_ID_SGI_ACENIC 0x0009 |
135 | #endif | 135 | #endif |
136 | 136 | ||
137 | static struct pci_device_id acenic_pci_tbl[] = { | 137 | static DEFINE_PCI_DEVICE_TABLE(acenic_pci_tbl) = { |
138 | { PCI_VENDOR_ID_ALTEON, PCI_DEVICE_ID_ALTEON_ACENIC_FIBRE, | 138 | { PCI_VENDOR_ID_ALTEON, PCI_DEVICE_ID_ALTEON_ACENIC_FIBRE, |
139 | PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_NETWORK_ETHERNET << 8, 0xffff00, }, | 139 | PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_NETWORK_ETHERNET << 8, 0xffff00, }, |
140 | { PCI_VENDOR_ID_ALTEON, PCI_DEVICE_ID_ALTEON_ACENIC_COPPER, | 140 | { PCI_VENDOR_ID_ALTEON, PCI_DEVICE_ID_ALTEON_ACENIC_COPPER, |
diff --git a/drivers/net/amd8111e.c b/drivers/net/amd8111e.c index 766aabfdfc75..545c791f477e 100644 --- a/drivers/net/amd8111e.c +++ b/drivers/net/amd8111e.c | |||
@@ -113,7 +113,7 @@ MODULE_PARM_DESC(coalesce, "Enable or Disable interrupt coalescing, 1: Enable, 0 | |||
113 | module_param_array(dynamic_ipg, bool, NULL, 0); | 113 | module_param_array(dynamic_ipg, bool, NULL, 0); |
114 | MODULE_PARM_DESC(dynamic_ipg, "Enable or Disable dynamic IPG, 1: Enable, 0: Disable"); | 114 | MODULE_PARM_DESC(dynamic_ipg, "Enable or Disable dynamic IPG, 1: Enable, 0: Disable"); |
115 | 115 | ||
116 | static struct pci_device_id amd8111e_pci_tbl[] = { | 116 | static DEFINE_PCI_DEVICE_TABLE(amd8111e_pci_tbl) = { |
117 | 117 | ||
118 | { PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD8111E_7462, | 118 | { PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD8111E_7462, |
119 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL }, | 119 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL }, |
diff --git a/drivers/net/arcnet/com20020-pci.c b/drivers/net/arcnet/com20020-pci.c index dbf4de39754d..b68e1eb405ff 100644 --- a/drivers/net/arcnet/com20020-pci.c +++ b/drivers/net/arcnet/com20020-pci.c | |||
@@ -144,7 +144,7 @@ static void __devexit com20020pci_remove(struct pci_dev *pdev) | |||
144 | free_netdev(dev); | 144 | free_netdev(dev); |
145 | } | 145 | } |
146 | 146 | ||
147 | static struct pci_device_id com20020pci_id_table[] = { | 147 | static DEFINE_PCI_DEVICE_TABLE(com20020pci_id_table) = { |
148 | { 0x1571, 0xa001, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, | 148 | { 0x1571, 0xa001, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, |
149 | { 0x1571, 0xa002, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, | 149 | { 0x1571, 0xa002, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, |
150 | { 0x1571, 0xa003, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, | 150 | { 0x1571, 0xa003, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, |
diff --git a/drivers/net/atl1c/atl1c_main.c b/drivers/net/atl1c/atl1c_main.c index 77cde859620c..d98095df05be 100644 --- a/drivers/net/atl1c/atl1c_main.c +++ b/drivers/net/atl1c/atl1c_main.c | |||
@@ -35,7 +35,7 @@ char atl1c_driver_version[] = ATL1C_DRV_VERSION; | |||
35 | * { Vendor ID, Device ID, SubVendor ID, SubDevice ID, | 35 | * { Vendor ID, Device ID, SubVendor ID, SubDevice ID, |
36 | * Class, Class Mask, private data (not used) } | 36 | * Class, Class Mask, private data (not used) } |
37 | */ | 37 | */ |
38 | static struct pci_device_id atl1c_pci_tbl[] = { | 38 | static DEFINE_PCI_DEVICE_TABLE(atl1c_pci_tbl) = { |
39 | {PCI_DEVICE(PCI_VENDOR_ID_ATTANSIC, PCI_DEVICE_ID_ATTANSIC_L1C)}, | 39 | {PCI_DEVICE(PCI_VENDOR_ID_ATTANSIC, PCI_DEVICE_ID_ATTANSIC_L1C)}, |
40 | {PCI_DEVICE(PCI_VENDOR_ID_ATTANSIC, PCI_DEVICE_ID_ATTANSIC_L2C)}, | 40 | {PCI_DEVICE(PCI_VENDOR_ID_ATTANSIC, PCI_DEVICE_ID_ATTANSIC_L2C)}, |
41 | /* required last entry */ | 41 | /* required last entry */ |
diff --git a/drivers/net/atl1e/atl1e_main.c b/drivers/net/atl1e/atl1e_main.c index 2080d444068b..d59f8e89c65d 100644 --- a/drivers/net/atl1e/atl1e_main.c +++ b/drivers/net/atl1e/atl1e_main.c | |||
@@ -35,7 +35,7 @@ char atl1e_driver_version[] = DRV_VERSION; | |||
35 | * { Vendor ID, Device ID, SubVendor ID, SubDevice ID, | 35 | * { Vendor ID, Device ID, SubVendor ID, SubDevice ID, |
36 | * Class, Class Mask, private data (not used) } | 36 | * Class, Class Mask, private data (not used) } |
37 | */ | 37 | */ |
38 | static struct pci_device_id atl1e_pci_tbl[] = { | 38 | static DEFINE_PCI_DEVICE_TABLE(atl1e_pci_tbl) = { |
39 | {PCI_DEVICE(PCI_VENDOR_ID_ATTANSIC, PCI_DEVICE_ID_ATTANSIC_L1E)}, | 39 | {PCI_DEVICE(PCI_VENDOR_ID_ATTANSIC, PCI_DEVICE_ID_ATTANSIC_L1E)}, |
40 | {PCI_DEVICE(PCI_VENDOR_ID_ATTANSIC, 0x1066)}, | 40 | {PCI_DEVICE(PCI_VENDOR_ID_ATTANSIC, 0x1066)}, |
41 | /* required last entry */ | 41 | /* required last entry */ |
diff --git a/drivers/net/atlx/atl1.c b/drivers/net/atlx/atl1.c index b6cf3263127c..9ba547069db3 100644 --- a/drivers/net/atlx/atl1.c +++ b/drivers/net/atlx/atl1.c | |||
@@ -232,7 +232,7 @@ static void __devinit atl1_check_options(struct atl1_adapter *adapter) | |||
232 | /* | 232 | /* |
233 | * atl1_pci_tbl - PCI Device ID Table | 233 | * atl1_pci_tbl - PCI Device ID Table |
234 | */ | 234 | */ |
235 | static const struct pci_device_id atl1_pci_tbl[] = { | 235 | static DEFINE_PCI_DEVICE_TABLE(atl1_pci_tbl) = { |
236 | {PCI_DEVICE(PCI_VENDOR_ID_ATTANSIC, PCI_DEVICE_ID_ATTANSIC_L1)}, | 236 | {PCI_DEVICE(PCI_VENDOR_ID_ATTANSIC, PCI_DEVICE_ID_ATTANSIC_L1)}, |
237 | /* required last entry */ | 237 | /* required last entry */ |
238 | {0,} | 238 | {0,} |
diff --git a/drivers/net/atlx/atl2.c b/drivers/net/atlx/atl2.c index c0451d75cdcf..255e4e7ea0ee 100644 --- a/drivers/net/atlx/atl2.c +++ b/drivers/net/atlx/atl2.c | |||
@@ -63,7 +63,7 @@ MODULE_VERSION(ATL2_DRV_VERSION); | |||
63 | /* | 63 | /* |
64 | * atl2_pci_tbl - PCI Device ID Table | 64 | * atl2_pci_tbl - PCI Device ID Table |
65 | */ | 65 | */ |
66 | static struct pci_device_id atl2_pci_tbl[] = { | 66 | static DEFINE_PCI_DEVICE_TABLE(atl2_pci_tbl) = { |
67 | {PCI_DEVICE(PCI_VENDOR_ID_ATTANSIC, PCI_DEVICE_ID_ATTANSIC_L2)}, | 67 | {PCI_DEVICE(PCI_VENDOR_ID_ATTANSIC, PCI_DEVICE_ID_ATTANSIC_L2)}, |
68 | /* required last entry */ | 68 | /* required last entry */ |
69 | {0,} | 69 | {0,} |
diff --git a/drivers/net/b44.c b/drivers/net/b44.c index 4869adb69586..44b66be38134 100644 --- a/drivers/net/b44.c +++ b/drivers/net/b44.c | |||
@@ -102,7 +102,7 @@ MODULE_PARM_DESC(b44_debug, "B44 bitmapped debugging message enable value"); | |||
102 | 102 | ||
103 | 103 | ||
104 | #ifdef CONFIG_B44_PCI | 104 | #ifdef CONFIG_B44_PCI |
105 | static const struct pci_device_id b44_pci_tbl[] = { | 105 | static DEFINE_PCI_DEVICE_TABLE(b44_pci_tbl) = { |
106 | { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_BCM4401) }, | 106 | { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_BCM4401) }, |
107 | { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_BCM4401B0) }, | 107 | { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_BCM4401B0) }, |
108 | { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_BCM4401B1) }, | 108 | { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_BCM4401B1) }, |
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index 77ba13520d87..0bfdf30ea4d1 100644 --- a/drivers/net/bnx2x_main.c +++ b/drivers/net/bnx2x_main.c | |||
@@ -140,7 +140,7 @@ static struct { | |||
140 | }; | 140 | }; |
141 | 141 | ||
142 | 142 | ||
143 | static const struct pci_device_id bnx2x_pci_tbl[] = { | 143 | static DEFINE_PCI_DEVICE_TABLE(bnx2x_pci_tbl) = { |
144 | { PCI_VDEVICE(BROADCOM, PCI_DEVICE_ID_NX2_57710), BCM57710 }, | 144 | { PCI_VDEVICE(BROADCOM, PCI_DEVICE_ID_NX2_57710), BCM57710 }, |
145 | { PCI_VDEVICE(BROADCOM, PCI_DEVICE_ID_NX2_57711), BCM57711 }, | 145 | { PCI_VDEVICE(BROADCOM, PCI_DEVICE_ID_NX2_57711), BCM57711 }, |
146 | { PCI_VDEVICE(BROADCOM, PCI_DEVICE_ID_NX2_57711E), BCM57711E }, | 146 | { PCI_VDEVICE(BROADCOM, PCI_DEVICE_ID_NX2_57711E), BCM57711E }, |
diff --git a/drivers/net/can/sja1000/ems_pci.c b/drivers/net/can/sja1000/ems_pci.c index fd04789d3370..87300606abb9 100644 --- a/drivers/net/can/sja1000/ems_pci.c +++ b/drivers/net/can/sja1000/ems_pci.c | |||
@@ -102,7 +102,7 @@ struct ems_pci_card { | |||
102 | 102 | ||
103 | #define EMS_PCI_BASE_SIZE 4096 /* size of controller area */ | 103 | #define EMS_PCI_BASE_SIZE 4096 /* size of controller area */ |
104 | 104 | ||
105 | static struct pci_device_id ems_pci_tbl[] = { | 105 | static DEFINE_PCI_DEVICE_TABLE(ems_pci_tbl) = { |
106 | /* CPC-PCI v1 */ | 106 | /* CPC-PCI v1 */ |
107 | {PCI_VENDOR_ID_SIEMENS, 0x2104, PCI_ANY_ID, PCI_ANY_ID,}, | 107 | {PCI_VENDOR_ID_SIEMENS, 0x2104, PCI_ANY_ID, PCI_ANY_ID,}, |
108 | /* CPC-PCI v2 */ | 108 | /* CPC-PCI v2 */ |
diff --git a/drivers/net/can/sja1000/kvaser_pci.c b/drivers/net/can/sja1000/kvaser_pci.c index 7dd7769b9713..441e776a7f59 100644 --- a/drivers/net/can/sja1000/kvaser_pci.c +++ b/drivers/net/can/sja1000/kvaser_pci.c | |||
@@ -109,7 +109,7 @@ struct kvaser_pci { | |||
109 | #define KVASER_PCI_VENDOR_ID2 0x1a07 /* the PCI device and vendor IDs */ | 109 | #define KVASER_PCI_VENDOR_ID2 0x1a07 /* the PCI device and vendor IDs */ |
110 | #define KVASER_PCI_DEVICE_ID2 0x0008 | 110 | #define KVASER_PCI_DEVICE_ID2 0x0008 |
111 | 111 | ||
112 | static struct pci_device_id kvaser_pci_tbl[] = { | 112 | static DEFINE_PCI_DEVICE_TABLE(kvaser_pci_tbl) = { |
113 | {KVASER_PCI_VENDOR_ID1, KVASER_PCI_DEVICE_ID1, PCI_ANY_ID, PCI_ANY_ID,}, | 113 | {KVASER_PCI_VENDOR_ID1, KVASER_PCI_DEVICE_ID1, PCI_ANY_ID, PCI_ANY_ID,}, |
114 | {KVASER_PCI_VENDOR_ID2, KVASER_PCI_DEVICE_ID2, PCI_ANY_ID, PCI_ANY_ID,}, | 114 | {KVASER_PCI_VENDOR_ID2, KVASER_PCI_DEVICE_ID2, PCI_ANY_ID, PCI_ANY_ID,}, |
115 | { 0,} | 115 | { 0,} |
diff --git a/drivers/net/cassini.c b/drivers/net/cassini.c index f857afe8e488..b3a038c23af1 100644 --- a/drivers/net/cassini.c +++ b/drivers/net/cassini.c | |||
@@ -236,7 +236,7 @@ static u16 link_modes[] __devinitdata = { | |||
236 | CAS_BMCR_SPEED1000|BMCR_FULLDPLX /* 5 : 1000bt full duplex */ | 236 | CAS_BMCR_SPEED1000|BMCR_FULLDPLX /* 5 : 1000bt full duplex */ |
237 | }; | 237 | }; |
238 | 238 | ||
239 | static struct pci_device_id cas_pci_tbl[] __devinitdata = { | 239 | static DEFINE_PCI_DEVICE_TABLE(cas_pci_tbl) = { |
240 | { PCI_VENDOR_ID_SUN, PCI_DEVICE_ID_SUN_CASSINI, | 240 | { PCI_VENDOR_ID_SUN, PCI_DEVICE_ID_SUN_CASSINI, |
241 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL }, | 241 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL }, |
242 | { PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_SATURN, | 242 | { PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_SATURN, |
diff --git a/drivers/net/chelsio/common.h b/drivers/net/chelsio/common.h index 699d22c5fe09..f6462b54f823 100644 --- a/drivers/net/chelsio/common.h +++ b/drivers/net/chelsio/common.h | |||
@@ -334,7 +334,7 @@ static inline int t1_is_asic(const adapter_t *adapter) | |||
334 | return adapter->params.is_asic; | 334 | return adapter->params.is_asic; |
335 | } | 335 | } |
336 | 336 | ||
337 | extern struct pci_device_id t1_pci_tbl[]; | 337 | extern const struct pci_device_id t1_pci_tbl[]; |
338 | 338 | ||
339 | static inline int adapter_matches_type(const adapter_t *adapter, | 339 | static inline int adapter_matches_type(const adapter_t *adapter, |
340 | int version, int revision) | 340 | int version, int revision) |
diff --git a/drivers/net/chelsio/subr.c b/drivers/net/chelsio/subr.c index 17720c6e5bfe..2402d372c886 100644 --- a/drivers/net/chelsio/subr.c +++ b/drivers/net/chelsio/subr.c | |||
@@ -528,7 +528,7 @@ static const struct board_info t1_board[] = { | |||
528 | 528 | ||
529 | }; | 529 | }; |
530 | 530 | ||
531 | struct pci_device_id t1_pci_tbl[] = { | 531 | DEFINE_PCI_DEVICE_TABLE(t1_pci_tbl) = { |
532 | CH_DEVICE(8, 0, CH_BRD_T110_1CU), | 532 | CH_DEVICE(8, 0, CH_BRD_T110_1CU), |
533 | CH_DEVICE(8, 1, CH_BRD_T110_1CU), | 533 | CH_DEVICE(8, 1, CH_BRD_T110_1CU), |
534 | CH_DEVICE(7, 0, CH_BRD_N110_1F), | 534 | CH_DEVICE(7, 0, CH_BRD_N110_1F), |
diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c index 89bec9c3c141..73622f5312cb 100644 --- a/drivers/net/cxgb3/cxgb3_main.c +++ b/drivers/net/cxgb3/cxgb3_main.c | |||
@@ -80,7 +80,7 @@ enum { | |||
80 | #define CH_DEVICE(devid, idx) \ | 80 | #define CH_DEVICE(devid, idx) \ |
81 | { PCI_VENDOR_ID_CHELSIO, devid, PCI_ANY_ID, PCI_ANY_ID, 0, 0, idx } | 81 | { PCI_VENDOR_ID_CHELSIO, devid, PCI_ANY_ID, PCI_ANY_ID, 0, 0, idx } |
82 | 82 | ||
83 | static const struct pci_device_id cxgb3_pci_tbl[] = { | 83 | static DEFINE_PCI_DEVICE_TABLE(cxgb3_pci_tbl) = { |
84 | CH_DEVICE(0x20, 0), /* PE9000 */ | 84 | CH_DEVICE(0x20, 0), /* PE9000 */ |
85 | CH_DEVICE(0x21, 1), /* T302E */ | 85 | CH_DEVICE(0x21, 1), /* T302E */ |
86 | CH_DEVICE(0x22, 2), /* T310E */ | 86 | CH_DEVICE(0x22, 2), /* T310E */ |
diff --git a/drivers/net/defxx.c b/drivers/net/defxx.c index e4eac4bcdf83..98da085445e6 100644 --- a/drivers/net/defxx.c +++ b/drivers/net/defxx.c | |||
@@ -3628,7 +3628,7 @@ static int __devinit dfx_pci_register(struct pci_dev *, | |||
3628 | const struct pci_device_id *); | 3628 | const struct pci_device_id *); |
3629 | static void __devexit dfx_pci_unregister(struct pci_dev *); | 3629 | static void __devexit dfx_pci_unregister(struct pci_dev *); |
3630 | 3630 | ||
3631 | static struct pci_device_id dfx_pci_table[] = { | 3631 | static DEFINE_PCI_DEVICE_TABLE(dfx_pci_table) = { |
3632 | { PCI_DEVICE(PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_FDDI) }, | 3632 | { PCI_DEVICE(PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_FDDI) }, |
3633 | { } | 3633 | { } |
3634 | }; | 3634 | }; |
diff --git a/drivers/net/dl2k.h b/drivers/net/dl2k.h index 266ec8777ca8..7caab3d26a9e 100644 --- a/drivers/net/dl2k.h +++ b/drivers/net/dl2k.h | |||
@@ -537,7 +537,7 @@ struct netdev_private { | |||
537 | driver_data Data private to the driver. | 537 | driver_data Data private to the driver. |
538 | */ | 538 | */ |
539 | 539 | ||
540 | static const struct pci_device_id rio_pci_tbl[] = { | 540 | static DEFINE_PCI_DEVICE_TABLE(rio_pci_tbl) = { |
541 | {0x1186, 0x4000, PCI_ANY_ID, PCI_ANY_ID, }, | 541 | {0x1186, 0x4000, PCI_ANY_ID, PCI_ANY_ID, }, |
542 | {0x13f0, 0x1021, PCI_ANY_ID, PCI_ANY_ID, }, | 542 | {0x13f0, 0x1021, PCI_ANY_ID, PCI_ANY_ID, }, |
543 | { } | 543 | { } |
diff --git a/drivers/net/e100.c b/drivers/net/e100.c index 839fb2b136d3..5c7a155e849a 100644 --- a/drivers/net/e100.c +++ b/drivers/net/e100.c | |||
@@ -208,7 +208,7 @@ MODULE_PARM_DESC(use_io, "Force use of i/o access mode"); | |||
208 | #define INTEL_8255X_ETHERNET_DEVICE(device_id, ich) {\ | 208 | #define INTEL_8255X_ETHERNET_DEVICE(device_id, ich) {\ |
209 | PCI_VENDOR_ID_INTEL, device_id, PCI_ANY_ID, PCI_ANY_ID, \ | 209 | PCI_VENDOR_ID_INTEL, device_id, PCI_ANY_ID, PCI_ANY_ID, \ |
210 | PCI_CLASS_NETWORK_ETHERNET << 8, 0xFFFF00, ich } | 210 | PCI_CLASS_NETWORK_ETHERNET << 8, 0xFFFF00, ich } |
211 | static struct pci_device_id e100_id_table[] = { | 211 | static DEFINE_PCI_DEVICE_TABLE(e100_id_table) = { |
212 | INTEL_8255X_ETHERNET_DEVICE(0x1029, 0), | 212 | INTEL_8255X_ETHERNET_DEVICE(0x1029, 0), |
213 | INTEL_8255X_ETHERNET_DEVICE(0x1030, 0), | 213 | INTEL_8255X_ETHERNET_DEVICE(0x1030, 0), |
214 | INTEL_8255X_ETHERNET_DEVICE(0x1031, 3), | 214 | INTEL_8255X_ETHERNET_DEVICE(0x1031, 3), |
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c index 7e855f9bbd97..9ec7480be1d8 100644 --- a/drivers/net/e1000/e1000_main.c +++ b/drivers/net/e1000/e1000_main.c | |||
@@ -42,7 +42,7 @@ static const char e1000_copyright[] = "Copyright (c) 1999-2006 Intel Corporation | |||
42 | * Macro expands to... | 42 | * Macro expands to... |
43 | * {PCI_DEVICE(PCI_VENDOR_ID_INTEL, device_id)} | 43 | * {PCI_DEVICE(PCI_VENDOR_ID_INTEL, device_id)} |
44 | */ | 44 | */ |
45 | static struct pci_device_id e1000_pci_tbl[] = { | 45 | static DEFINE_PCI_DEVICE_TABLE(e1000_pci_tbl) = { |
46 | INTEL_E1000_ETHERNET_DEVICE(0x1000), | 46 | INTEL_E1000_ETHERNET_DEVICE(0x1000), |
47 | INTEL_E1000_ETHERNET_DEVICE(0x1001), | 47 | INTEL_E1000_ETHERNET_DEVICE(0x1001), |
48 | INTEL_E1000_ETHERNET_DEVICE(0x1004), | 48 | INTEL_E1000_ETHERNET_DEVICE(0x1004), |
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c index 762b697ce731..9ccb9010dc5b 100644 --- a/drivers/net/e1000e/netdev.c +++ b/drivers/net/e1000e/netdev.c | |||
@@ -5325,7 +5325,7 @@ static struct pci_error_handlers e1000_err_handler = { | |||
5325 | .resume = e1000_io_resume, | 5325 | .resume = e1000_io_resume, |
5326 | }; | 5326 | }; |
5327 | 5327 | ||
5328 | static struct pci_device_id e1000_pci_tbl[] = { | 5328 | static DEFINE_PCI_DEVICE_TABLE(e1000_pci_tbl) = { |
5329 | { PCI_VDEVICE(INTEL, E1000_DEV_ID_82571EB_COPPER), board_82571 }, | 5329 | { PCI_VDEVICE(INTEL, E1000_DEV_ID_82571EB_COPPER), board_82571 }, |
5330 | { PCI_VDEVICE(INTEL, E1000_DEV_ID_82571EB_FIBER), board_82571 }, | 5330 | { PCI_VDEVICE(INTEL, E1000_DEV_ID_82571EB_FIBER), board_82571 }, |
5331 | { PCI_VDEVICE(INTEL, E1000_DEV_ID_82571EB_QUAD_COPPER), board_82571 }, | 5331 | { PCI_VDEVICE(INTEL, E1000_DEV_ID_82571EB_QUAD_COPPER), board_82571 }, |
diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index d87935ad1130..c81bc4b1816f 100644 --- a/drivers/net/enic/enic_main.c +++ b/drivers/net/enic/enic_main.c | |||
@@ -51,7 +51,7 @@ | |||
51 | #define PCI_DEVICE_ID_CISCO_VIC_ENET 0x0043 /* ethernet vnic */ | 51 | #define PCI_DEVICE_ID_CISCO_VIC_ENET 0x0043 /* ethernet vnic */ |
52 | 52 | ||
53 | /* Supported devices */ | 53 | /* Supported devices */ |
54 | static struct pci_device_id enic_id_table[] = { | 54 | static DEFINE_PCI_DEVICE_TABLE(enic_id_table) = { |
55 | { PCI_VDEVICE(CISCO, PCI_DEVICE_ID_CISCO_VIC_ENET) }, | 55 | { PCI_VDEVICE(CISCO, PCI_DEVICE_ID_CISCO_VIC_ENET) }, |
56 | { 0, } /* end of table */ | 56 | { 0, } /* end of table */ |
57 | }; | 57 | }; |
diff --git a/drivers/net/epic100.c b/drivers/net/epic100.c index 41494f7b2ec8..1f8b11449fad 100644 --- a/drivers/net/epic100.c +++ b/drivers/net/epic100.c | |||
@@ -167,7 +167,7 @@ static const struct epic_chip_info pci_id_tbl[] = { | |||
167 | }; | 167 | }; |
168 | 168 | ||
169 | 169 | ||
170 | static struct pci_device_id epic_pci_tbl[] = { | 170 | static DEFINE_PCI_DEVICE_TABLE(epic_pci_tbl) = { |
171 | { 0x10B8, 0x0005, 0x1092, 0x0AB4, 0, 0, SMSC_83C170_0 }, | 171 | { 0x10B8, 0x0005, 0x1092, 0x0AB4, 0, 0, SMSC_83C170_0 }, |
172 | { 0x10B8, 0x0005, PCI_ANY_ID, PCI_ANY_ID, 0, 0, SMSC_83C170 }, | 172 | { 0x10B8, 0x0005, PCI_ANY_ID, PCI_ANY_ID, 0, 0, SMSC_83C170 }, |
173 | { 0x10B8, 0x0006, PCI_ANY_ID, PCI_ANY_ID, | 173 | { 0x10B8, 0x0006, PCI_ANY_ID, PCI_ANY_ID, |
diff --git a/drivers/net/fealnx.c b/drivers/net/fealnx.c index dac4e595589e..e6a98129d787 100644 --- a/drivers/net/fealnx.c +++ b/drivers/net/fealnx.c | |||
@@ -1941,7 +1941,7 @@ static int netdev_close(struct net_device *dev) | |||
1941 | return 0; | 1941 | return 0; |
1942 | } | 1942 | } |
1943 | 1943 | ||
1944 | static struct pci_device_id fealnx_pci_tbl[] = { | 1944 | static DEFINE_PCI_DEVICE_TABLE(fealnx_pci_tbl) = { |
1945 | {0x1516, 0x0800, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | 1945 | {0x1516, 0x0800, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, |
1946 | {0x1516, 0x0803, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1}, | 1946 | {0x1516, 0x0803, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1}, |
1947 | {0x1516, 0x0891, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 2}, | 1947 | {0x1516, 0x0891, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 2}, |
diff --git a/drivers/net/forcedeth.c b/drivers/net/forcedeth.c index 3c340489804a..3eb713b014f9 100644 --- a/drivers/net/forcedeth.c +++ b/drivers/net/forcedeth.c | |||
@@ -6198,7 +6198,7 @@ static void nv_shutdown(struct pci_dev *pdev) | |||
6198 | #define nv_resume NULL | 6198 | #define nv_resume NULL |
6199 | #endif /* CONFIG_PM */ | 6199 | #endif /* CONFIG_PM */ |
6200 | 6200 | ||
6201 | static struct pci_device_id pci_tbl[] = { | 6201 | static DEFINE_PCI_DEVICE_TABLE(pci_tbl) = { |
6202 | { /* nForce Ethernet Controller */ | 6202 | { /* nForce Ethernet Controller */ |
6203 | PCI_DEVICE(0x10DE, 0x01C3), | 6203 | PCI_DEVICE(0x10DE, 0x01C3), |
6204 | .driver_data = DEV_NEED_TIMERIRQ|DEV_NEED_LINKTIMER, | 6204 | .driver_data = DEV_NEED_TIMERIRQ|DEV_NEED_LINKTIMER, |
diff --git a/drivers/net/hamachi.c b/drivers/net/hamachi.c index ea85075a89a2..dd72c5025e6a 100644 --- a/drivers/net/hamachi.c +++ b/drivers/net/hamachi.c | |||
@@ -1990,7 +1990,7 @@ static void __devexit hamachi_remove_one (struct pci_dev *pdev) | |||
1990 | } | 1990 | } |
1991 | } | 1991 | } |
1992 | 1992 | ||
1993 | static struct pci_device_id hamachi_pci_tbl[] = { | 1993 | static DEFINE_PCI_DEVICE_TABLE(hamachi_pci_tbl) = { |
1994 | { 0x1318, 0x0911, PCI_ANY_ID, PCI_ANY_ID, }, | 1994 | { 0x1318, 0x0911, PCI_ANY_ID, PCI_ANY_ID, }, |
1995 | { 0, } | 1995 | { 0, } |
1996 | }; | 1996 | }; |
diff --git a/drivers/net/hp100.c b/drivers/net/hp100.c index 90f890e7c5e1..0c2f2e8b1c47 100644 --- a/drivers/net/hp100.c +++ b/drivers/net/hp100.c | |||
@@ -210,7 +210,7 @@ MODULE_DEVICE_TABLE(eisa, hp100_eisa_tbl); | |||
210 | #endif | 210 | #endif |
211 | 211 | ||
212 | #ifdef CONFIG_PCI | 212 | #ifdef CONFIG_PCI |
213 | static struct pci_device_id hp100_pci_tbl[] = { | 213 | static DEFINE_PCI_DEVICE_TABLE(hp100_pci_tbl) = { |
214 | {PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_J2585A, PCI_ANY_ID, PCI_ANY_ID,}, | 214 | {PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_J2585A, PCI_ANY_ID, PCI_ANY_ID,}, |
215 | {PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_J2585B, PCI_ANY_ID, PCI_ANY_ID,}, | 215 | {PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_J2585B, PCI_ANY_ID, PCI_ANY_ID,}, |
216 | {PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_J2970A, PCI_ANY_ID, PCI_ANY_ID,}, | 216 | {PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_J2970A, PCI_ANY_ID, PCI_ANY_ID,}, |
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index 78963a0e128d..484fbc83739f 100644 --- a/drivers/net/igb/igb_main.c +++ b/drivers/net/igb/igb_main.c | |||
@@ -60,7 +60,7 @@ static const struct e1000_info *igb_info_tbl[] = { | |||
60 | [board_82575] = &e1000_82575_info, | 60 | [board_82575] = &e1000_82575_info, |
61 | }; | 61 | }; |
62 | 62 | ||
63 | static struct pci_device_id igb_pci_tbl[] = { | 63 | static DEFINE_PCI_DEVICE_TABLE(igb_pci_tbl) = { |
64 | { PCI_VDEVICE(INTEL, E1000_DEV_ID_82580_COPPER), board_82575 }, | 64 | { PCI_VDEVICE(INTEL, E1000_DEV_ID_82580_COPPER), board_82575 }, |
65 | { PCI_VDEVICE(INTEL, E1000_DEV_ID_82580_FIBER), board_82575 }, | 65 | { PCI_VDEVICE(INTEL, E1000_DEV_ID_82580_FIBER), board_82575 }, |
66 | { PCI_VDEVICE(INTEL, E1000_DEV_ID_82580_SERDES), board_82575 }, | 66 | { PCI_VDEVICE(INTEL, E1000_DEV_ID_82580_SERDES), board_82575 }, |
diff --git a/drivers/net/igbvf/netdev.c b/drivers/net/igbvf/netdev.c index 1326232c1d32..ca0d1906e83e 100644 --- a/drivers/net/igbvf/netdev.c +++ b/drivers/net/igbvf/netdev.c | |||
@@ -2876,7 +2876,7 @@ static struct pci_error_handlers igbvf_err_handler = { | |||
2876 | .resume = igbvf_io_resume, | 2876 | .resume = igbvf_io_resume, |
2877 | }; | 2877 | }; |
2878 | 2878 | ||
2879 | static struct pci_device_id igbvf_pci_tbl[] = { | 2879 | static DEFINE_PCI_DEVICE_TABLE(igbvf_pci_tbl) = { |
2880 | { PCI_VDEVICE(INTEL, E1000_DEV_ID_82576_VF), board_vf }, | 2880 | { PCI_VDEVICE(INTEL, E1000_DEV_ID_82576_VF), board_vf }, |
2881 | { } /* terminate list */ | 2881 | { } /* terminate list */ |
2882 | }; | 2882 | }; |
diff --git a/drivers/net/ioc3-eth.c b/drivers/net/ioc3-eth.c index 8ec15ab8c8c2..81a4c5d30733 100644 --- a/drivers/net/ioc3-eth.c +++ b/drivers/net/ioc3-eth.c | |||
@@ -1383,7 +1383,7 @@ static void __devexit ioc3_remove_one (struct pci_dev *pdev) | |||
1383 | */ | 1383 | */ |
1384 | } | 1384 | } |
1385 | 1385 | ||
1386 | static struct pci_device_id ioc3_pci_tbl[] = { | 1386 | static DEFINE_PCI_DEVICE_TABLE(ioc3_pci_tbl) = { |
1387 | { PCI_VENDOR_ID_SGI, PCI_DEVICE_ID_SGI_IOC3, PCI_ANY_ID, PCI_ANY_ID }, | 1387 | { PCI_VENDOR_ID_SGI, PCI_DEVICE_ID_SGI_IOC3, PCI_ANY_ID, PCI_ANY_ID }, |
1388 | { 0 } | 1388 | { 0 } |
1389 | }; | 1389 | }; |
diff --git a/drivers/net/ipg.c b/drivers/net/ipg.c index ba8d246d05a0..49f35e2ed19f 100644 --- a/drivers/net/ipg.c +++ b/drivers/net/ipg.c | |||
@@ -92,7 +92,7 @@ static const char *ipg_brand_name[] = { | |||
92 | "D-Link NIC IP1000A" | 92 | "D-Link NIC IP1000A" |
93 | }; | 93 | }; |
94 | 94 | ||
95 | static struct pci_device_id ipg_pci_tbl[] __devinitdata = { | 95 | static DEFINE_PCI_DEVICE_TABLE(ipg_pci_tbl) = { |
96 | { PCI_VDEVICE(SUNDANCE, 0x1023), 0 }, | 96 | { PCI_VDEVICE(SUNDANCE, 0x1023), 0 }, |
97 | { PCI_VDEVICE(SUNDANCE, 0x2021), 1 }, | 97 | { PCI_VDEVICE(SUNDANCE, 0x2021), 1 }, |
98 | { PCI_VDEVICE(SUNDANCE, 0x1021), 2 }, | 98 | { PCI_VDEVICE(SUNDANCE, 0x1021), 2 }, |
diff --git a/drivers/net/irda/donauboe.c b/drivers/net/irda/donauboe.c index 2d7b5c1d5572..b7e6625ca75e 100644 --- a/drivers/net/irda/donauboe.c +++ b/drivers/net/irda/donauboe.c | |||
@@ -184,7 +184,7 @@ | |||
184 | #define CONFIG0H_DMA_ON_NORX CONFIG0H_DMA_OFF| OBOE_CONFIG0H_ENDMAC | 184 | #define CONFIG0H_DMA_ON_NORX CONFIG0H_DMA_OFF| OBOE_CONFIG0H_ENDMAC |
185 | #define CONFIG0H_DMA_ON CONFIG0H_DMA_ON_NORX | OBOE_CONFIG0H_ENRX | 185 | #define CONFIG0H_DMA_ON CONFIG0H_DMA_ON_NORX | OBOE_CONFIG0H_ENRX |
186 | 186 | ||
187 | static struct pci_device_id toshoboe_pci_tbl[] = { | 187 | static DEFINE_PCI_DEVICE_TABLE(toshoboe_pci_tbl) = { |
188 | { PCI_VENDOR_ID_TOSHIBA, PCI_DEVICE_ID_FIR701, PCI_ANY_ID, PCI_ANY_ID, }, | 188 | { PCI_VENDOR_ID_TOSHIBA, PCI_DEVICE_ID_FIR701, PCI_ANY_ID, PCI_ANY_ID, }, |
189 | { PCI_VENDOR_ID_TOSHIBA, PCI_DEVICE_ID_FIRD01, PCI_ANY_ID, PCI_ANY_ID, }, | 189 | { PCI_VENDOR_ID_TOSHIBA, PCI_DEVICE_ID_FIRD01, PCI_ANY_ID, PCI_ANY_ID, }, |
190 | { } /* Terminating entry */ | 190 | { } /* Terminating entry */ |
diff --git a/drivers/net/irda/via-ircc.c b/drivers/net/irda/via-ircc.c index fddb4efd5453..6533c010cf5c 100644 --- a/drivers/net/irda/via-ircc.c +++ b/drivers/net/irda/via-ircc.c | |||
@@ -121,7 +121,7 @@ static void iodelay(int udelay) | |||
121 | } | 121 | } |
122 | } | 122 | } |
123 | 123 | ||
124 | static struct pci_device_id via_pci_tbl[] = { | 124 | static DEFINE_PCI_DEVICE_TABLE(via_pci_tbl) = { |
125 | { PCI_VENDOR_ID_VIA, 0x8231, PCI_ANY_ID, PCI_ANY_ID,0,0,0 }, | 125 | { PCI_VENDOR_ID_VIA, 0x8231, PCI_ANY_ID, PCI_ANY_ID,0,0,0 }, |
126 | { PCI_VENDOR_ID_VIA, 0x3109, PCI_ANY_ID, PCI_ANY_ID,0,0,1 }, | 126 | { PCI_VENDOR_ID_VIA, 0x3109, PCI_ANY_ID, PCI_ANY_ID,0,0,1 }, |
127 | { PCI_VENDOR_ID_VIA, 0x3074, PCI_ANY_ID, PCI_ANY_ID,0,0,2 }, | 127 | { PCI_VENDOR_ID_VIA, 0x3074, PCI_ANY_ID, PCI_ANY_ID,0,0,2 }, |
diff --git a/drivers/net/irda/vlsi_ir.c b/drivers/net/irda/vlsi_ir.c index bd3c6b5ee76a..209d4bcfaced 100644 --- a/drivers/net/irda/vlsi_ir.c +++ b/drivers/net/irda/vlsi_ir.c | |||
@@ -59,7 +59,7 @@ MODULE_LICENSE("GPL"); | |||
59 | 59 | ||
60 | static /* const */ char drivername[] = DRIVER_NAME; | 60 | static /* const */ char drivername[] = DRIVER_NAME; |
61 | 61 | ||
62 | static struct pci_device_id vlsi_irda_table [] = { | 62 | static DEFINE_PCI_DEVICE_TABLE(vlsi_irda_table) = { |
63 | { | 63 | { |
64 | .class = PCI_CLASS_WIRELESS_IRDA << 8, | 64 | .class = PCI_CLASS_WIRELESS_IRDA << 8, |
65 | .class_mask = PCI_CLASS_SUBCLASS_MASK << 8, | 65 | .class_mask = PCI_CLASS_SUBCLASS_MASK << 8, |
diff --git a/drivers/net/ixgb/ixgb_main.c b/drivers/net/ixgb/ixgb_main.c index bcd0f01d5feb..6c2d9366fe5e 100644 --- a/drivers/net/ixgb/ixgb_main.c +++ b/drivers/net/ixgb/ixgb_main.c | |||
@@ -50,7 +50,7 @@ MODULE_PARM_DESC(copybreak, | |||
50 | * { Vendor ID, Device ID, SubVendor ID, SubDevice ID, | 50 | * { Vendor ID, Device ID, SubVendor ID, SubDevice ID, |
51 | * Class, Class Mask, private data (not used) } | 51 | * Class, Class Mask, private data (not used) } |
52 | */ | 52 | */ |
53 | static struct pci_device_id ixgb_pci_tbl[] = { | 53 | static DEFINE_PCI_DEVICE_TABLE(ixgb_pci_tbl) = { |
54 | {INTEL_VENDOR_ID, IXGB_DEVICE_ID_82597EX, | 54 | {INTEL_VENDOR_ID, IXGB_DEVICE_ID_82597EX, |
55 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | 55 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, |
56 | {INTEL_VENDOR_ID, IXGB_DEVICE_ID_82597EX_CX4, | 56 | {INTEL_VENDOR_ID, IXGB_DEVICE_ID_82597EX_CX4, |
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index bd64387563f0..b2f11d45e225 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c | |||
@@ -67,7 +67,7 @@ static const struct ixgbe_info *ixgbe_info_tbl[] = { | |||
67 | * { Vendor ID, Device ID, SubVendor ID, SubDevice ID, | 67 | * { Vendor ID, Device ID, SubVendor ID, SubDevice ID, |
68 | * Class, Class Mask, private data (not used) } | 68 | * Class, Class Mask, private data (not used) } |
69 | */ | 69 | */ |
70 | static struct pci_device_id ixgbe_pci_tbl[] = { | 70 | static DEFINE_PCI_DEVICE_TABLE(ixgbe_pci_tbl) = { |
71 | {PCI_VDEVICE(INTEL, IXGBE_DEV_ID_82598), | 71 | {PCI_VDEVICE(INTEL, IXGBE_DEV_ID_82598), |
72 | board_82598 }, | 72 | board_82598 }, |
73 | {PCI_VDEVICE(INTEL, IXGBE_DEV_ID_82598AF_DUAL_PORT), | 73 | {PCI_VDEVICE(INTEL, IXGBE_DEV_ID_82598AF_DUAL_PORT), |
diff --git a/drivers/net/jme.c b/drivers/net/jme.c index 792b88fc3574..26eed49d3208 100644 --- a/drivers/net/jme.c +++ b/drivers/net/jme.c | |||
@@ -2994,7 +2994,7 @@ jme_resume(struct pci_dev *pdev) | |||
2994 | } | 2994 | } |
2995 | #endif | 2995 | #endif |
2996 | 2996 | ||
2997 | static struct pci_device_id jme_pci_tbl[] = { | 2997 | static DEFINE_PCI_DEVICE_TABLE(jme_pci_tbl) = { |
2998 | { PCI_VDEVICE(JMICRON, PCI_DEVICE_ID_JMICRON_JMC250) }, | 2998 | { PCI_VDEVICE(JMICRON, PCI_DEVICE_ID_JMICRON_JMC250) }, |
2999 | { PCI_VDEVICE(JMICRON, PCI_DEVICE_ID_JMICRON_JMC260) }, | 2999 | { PCI_VDEVICE(JMICRON, PCI_DEVICE_ID_JMICRON_JMC260) }, |
3000 | { } | 3000 | { } |
diff --git a/drivers/net/mlx4/main.c b/drivers/net/mlx4/main.c index 291a505fd4fc..58f7f979cd2b 100644 --- a/drivers/net/mlx4/main.c +++ b/drivers/net/mlx4/main.c | |||
@@ -1271,7 +1271,7 @@ int mlx4_restart_one(struct pci_dev *pdev) | |||
1271 | return __mlx4_init_one(pdev, NULL); | 1271 | return __mlx4_init_one(pdev, NULL); |
1272 | } | 1272 | } |
1273 | 1273 | ||
1274 | static struct pci_device_id mlx4_pci_table[] = { | 1274 | static DEFINE_PCI_DEVICE_TABLE(mlx4_pci_table) = { |
1275 | { PCI_VDEVICE(MELLANOX, 0x6340) }, /* MT25408 "Hermon" SDR */ | 1275 | { PCI_VDEVICE(MELLANOX, 0x6340) }, /* MT25408 "Hermon" SDR */ |
1276 | { PCI_VDEVICE(MELLANOX, 0x634a) }, /* MT25408 "Hermon" DDR */ | 1276 | { PCI_VDEVICE(MELLANOX, 0x634a) }, /* MT25408 "Hermon" DDR */ |
1277 | { PCI_VDEVICE(MELLANOX, 0x6354) }, /* MT25408 "Hermon" QDR */ | 1277 | { PCI_VDEVICE(MELLANOX, 0x6354) }, /* MT25408 "Hermon" QDR */ |
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c index 3fcb1c356e0d..c0884a9cba3c 100644 --- a/drivers/net/myri10ge/myri10ge.c +++ b/drivers/net/myri10ge/myri10ge.c | |||
@@ -4085,7 +4085,7 @@ static void myri10ge_remove(struct pci_dev *pdev) | |||
4085 | #define PCI_DEVICE_ID_MYRICOM_MYRI10GE_Z8E 0x0008 | 4085 | #define PCI_DEVICE_ID_MYRICOM_MYRI10GE_Z8E 0x0008 |
4086 | #define PCI_DEVICE_ID_MYRICOM_MYRI10GE_Z8E_9 0x0009 | 4086 | #define PCI_DEVICE_ID_MYRICOM_MYRI10GE_Z8E_9 0x0009 |
4087 | 4087 | ||
4088 | static struct pci_device_id myri10ge_pci_tbl[] = { | 4088 | static DEFINE_PCI_DEVICE_TABLE(myri10ge_pci_tbl) = { |
4089 | {PCI_DEVICE(PCI_VENDOR_ID_MYRICOM, PCI_DEVICE_ID_MYRICOM_MYRI10GE_Z8E)}, | 4089 | {PCI_DEVICE(PCI_VENDOR_ID_MYRICOM, PCI_DEVICE_ID_MYRICOM_MYRI10GE_Z8E)}, |
4090 | {PCI_DEVICE | 4090 | {PCI_DEVICE |
4091 | (PCI_VENDOR_ID_MYRICOM, PCI_DEVICE_ID_MYRICOM_MYRI10GE_Z8E_9)}, | 4091 | (PCI_VENDOR_ID_MYRICOM, PCI_DEVICE_ID_MYRICOM_MYRI10GE_Z8E_9)}, |
diff --git a/drivers/net/natsemi.c b/drivers/net/natsemi.c index 797fe164ce27..2d7b3bbfed01 100644 --- a/drivers/net/natsemi.c +++ b/drivers/net/natsemi.c | |||
@@ -247,7 +247,7 @@ static struct { | |||
247 | { "NatSemi DP8381[56]", 0, 24 }, | 247 | { "NatSemi DP8381[56]", 0, 24 }, |
248 | }; | 248 | }; |
249 | 249 | ||
250 | static struct pci_device_id natsemi_pci_tbl[] __devinitdata = { | 250 | static DEFINE_PCI_DEVICE_TABLE(natsemi_pci_tbl) = { |
251 | { PCI_VENDOR_ID_NS, 0x0020, 0x12d9, 0x000c, 0, 0, 0 }, | 251 | { PCI_VENDOR_ID_NS, 0x0020, 0x12d9, 0x000c, 0, 0, 0 }, |
252 | { PCI_VENDOR_ID_NS, 0x0020, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1 }, | 252 | { PCI_VENDOR_ID_NS, 0x0020, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1 }, |
253 | { } /* terminate list */ | 253 | { } /* terminate list */ |
diff --git a/drivers/net/ne2k-pci.c b/drivers/net/ne2k-pci.c index 3fcebb70151c..85aec4f10131 100644 --- a/drivers/net/ne2k-pci.c +++ b/drivers/net/ne2k-pci.c | |||
@@ -136,7 +136,7 @@ static struct { | |||
136 | }; | 136 | }; |
137 | 137 | ||
138 | 138 | ||
139 | static struct pci_device_id ne2k_pci_tbl[] = { | 139 | static DEFINE_PCI_DEVICE_TABLE(ne2k_pci_tbl) = { |
140 | { 0x10ec, 0x8029, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_RealTek_RTL_8029 }, | 140 | { 0x10ec, 0x8029, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_RealTek_RTL_8029 }, |
141 | { 0x1050, 0x0940, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_Winbond_89C940 }, | 141 | { 0x1050, 0x0940, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_Winbond_89C940 }, |
142 | { 0x11f6, 0x1401, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_Compex_RL2000 }, | 142 | { 0x11f6, 0x1401, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_Compex_RL2000 }, |
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index f13a07f717c7..3fdfc9b7c5b2 100644 --- a/drivers/net/netxen/netxen_nic_main.c +++ b/drivers/net/netxen/netxen_nic_main.c | |||
@@ -100,7 +100,7 @@ static void netxen_config_indev_addr(struct net_device *dev, unsigned long); | |||
100 | {PCI_DEVICE(PCI_VENDOR_ID_NETXEN, (device)), \ | 100 | {PCI_DEVICE(PCI_VENDOR_ID_NETXEN, (device)), \ |
101 | .class = PCI_CLASS_NETWORK_ETHERNET << 8, .class_mask = ~0} | 101 | .class = PCI_CLASS_NETWORK_ETHERNET << 8, .class_mask = ~0} |
102 | 102 | ||
103 | static struct pci_device_id netxen_pci_tbl[] __devinitdata = { | 103 | static DEFINE_PCI_DEVICE_TABLE(netxen_pci_tbl) = { |
104 | ENTRY(PCI_DEVICE_ID_NX2031_10GXSR), | 104 | ENTRY(PCI_DEVICE_ID_NX2031_10GXSR), |
105 | ENTRY(PCI_DEVICE_ID_NX2031_10GCX4), | 105 | ENTRY(PCI_DEVICE_ID_NX2031_10GCX4), |
106 | ENTRY(PCI_DEVICE_ID_NX2031_4GCU), | 106 | ENTRY(PCI_DEVICE_ID_NX2031_4GCU), |
diff --git a/drivers/net/niu.c b/drivers/net/niu.c index 8ce58c4c7dd3..920f0ecf7a0a 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c | |||
@@ -58,7 +58,7 @@ static void writeq(u64 val, void __iomem *reg) | |||
58 | } | 58 | } |
59 | #endif | 59 | #endif |
60 | 60 | ||
61 | static struct pci_device_id niu_pci_tbl[] = { | 61 | static DEFINE_PCI_DEVICE_TABLE(niu_pci_tbl) = { |
62 | {PCI_DEVICE(PCI_VENDOR_ID_SUN, 0xabcd)}, | 62 | {PCI_DEVICE(PCI_VENDOR_ID_SUN, 0xabcd)}, |
63 | {} | 63 | {} |
64 | }; | 64 | }; |
diff --git a/drivers/net/ns83820.c b/drivers/net/ns83820.c index 1f6327d41536..a3b6aa0f375d 100644 --- a/drivers/net/ns83820.c +++ b/drivers/net/ns83820.c | |||
@@ -2292,7 +2292,7 @@ static void __devexit ns83820_remove_one(struct pci_dev *pci_dev) | |||
2292 | pci_set_drvdata(pci_dev, NULL); | 2292 | pci_set_drvdata(pci_dev, NULL); |
2293 | } | 2293 | } |
2294 | 2294 | ||
2295 | static struct pci_device_id ns83820_pci_tbl[] = { | 2295 | static DEFINE_PCI_DEVICE_TABLE(ns83820_pci_tbl) = { |
2296 | { 0x100b, 0x0022, PCI_ANY_ID, PCI_ANY_ID, 0, .driver_data = 0, }, | 2296 | { 0x100b, 0x0022, PCI_ANY_ID, PCI_ANY_ID, 0, .driver_data = 0, }, |
2297 | { 0, }, | 2297 | { 0, }, |
2298 | }; | 2298 | }; |
diff --git a/drivers/net/pasemi_mac.c b/drivers/net/pasemi_mac.c index 1673eb045e1e..d44d4a208bbf 100644 --- a/drivers/net/pasemi_mac.c +++ b/drivers/net/pasemi_mac.c | |||
@@ -1875,7 +1875,7 @@ static void __devexit pasemi_mac_remove(struct pci_dev *pdev) | |||
1875 | free_netdev(netdev); | 1875 | free_netdev(netdev); |
1876 | } | 1876 | } |
1877 | 1877 | ||
1878 | static struct pci_device_id pasemi_mac_pci_tbl[] = { | 1878 | static DEFINE_PCI_DEVICE_TABLE(pasemi_mac_pci_tbl) = { |
1879 | { PCI_DEVICE(PCI_VENDOR_ID_PASEMI, 0xa005) }, | 1879 | { PCI_DEVICE(PCI_VENDOR_ID_PASEMI, 0xa005) }, |
1880 | { PCI_DEVICE(PCI_VENDOR_ID_PASEMI, 0xa006) }, | 1880 | { PCI_DEVICE(PCI_VENDOR_ID_PASEMI, 0xa006) }, |
1881 | { }, | 1881 | { }, |
diff --git a/drivers/net/pci-skeleton.c b/drivers/net/pci-skeleton.c index 8ff5536a3757..20273832bfce 100644 --- a/drivers/net/pci-skeleton.c +++ b/drivers/net/pci-skeleton.c | |||
@@ -211,7 +211,7 @@ static struct { | |||
211 | }; | 211 | }; |
212 | 212 | ||
213 | 213 | ||
214 | static const struct pci_device_id netdrv_pci_tbl[] = { | 214 | static DEFINE_PCI_DEVICE_TABLE(netdrv_pci_tbl) = { |
215 | {0x10ec, 0x8139, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL8139 }, | 215 | {0x10ec, 0x8139, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL8139 }, |
216 | {0x10ec, 0x8138, PCI_ANY_ID, PCI_ANY_ID, 0, 0, NETDRV_CB }, | 216 | {0x10ec, 0x8138, PCI_ANY_ID, PCI_ANY_ID, 0, 0, NETDRV_CB }, |
217 | {0x1113, 0x1211, PCI_ANY_ID, PCI_ANY_ID, 0, 0, SMC1211TX }, | 217 | {0x1113, 0x1211, PCI_ANY_ID, PCI_ANY_ID, 0, 0, SMC1211TX }, |
diff --git a/drivers/net/pcnet32.c b/drivers/net/pcnet32.c index dcc67a35e8f2..ed62ac6d9c0e 100644 --- a/drivers/net/pcnet32.c +++ b/drivers/net/pcnet32.c | |||
@@ -58,7 +58,7 @@ static const char *const version = | |||
58 | /* | 58 | /* |
59 | * PCI device identifiers for "new style" Linux PCI Device Drivers | 59 | * PCI device identifiers for "new style" Linux PCI Device Drivers |
60 | */ | 60 | */ |
61 | static struct pci_device_id pcnet32_pci_tbl[] = { | 61 | static DEFINE_PCI_DEVICE_TABLE(pcnet32_pci_tbl) = { |
62 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_LANCE_HOME), }, | 62 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_LANCE_HOME), }, |
63 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_LANCE), }, | 63 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_LANCE), }, |
64 | 64 | ||
diff --git a/drivers/net/qla3xxx.c b/drivers/net/qla3xxx.c index dd35066a7f8d..f922294fd349 100644 --- a/drivers/net/qla3xxx.c +++ b/drivers/net/qla3xxx.c | |||
@@ -61,7 +61,7 @@ static int msi; | |||
61 | module_param(msi, int, 0); | 61 | module_param(msi, int, 0); |
62 | MODULE_PARM_DESC(msi, "Turn on Message Signaled Interrupts."); | 62 | MODULE_PARM_DESC(msi, "Turn on Message Signaled Interrupts."); |
63 | 63 | ||
64 | static struct pci_device_id ql3xxx_pci_tbl[] __devinitdata = { | 64 | static DEFINE_PCI_DEVICE_TABLE(ql3xxx_pci_tbl) = { |
65 | {PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, QL3022_DEVICE_ID)}, | 65 | {PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, QL3022_DEVICE_ID)}, |
66 | {PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, QL3032_DEVICE_ID)}, | 66 | {PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, QL3032_DEVICE_ID)}, |
67 | /* required last entry */ | 67 | /* required last entry */ |
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c index 25561fbdb203..167a3dab2f18 100644 --- a/drivers/net/qlge/qlge_main.c +++ b/drivers/net/qlge/qlge_main.c | |||
@@ -73,7 +73,7 @@ static int qlge_irq_type = MSIX_IRQ; | |||
73 | module_param(qlge_irq_type, int, MSIX_IRQ); | 73 | module_param(qlge_irq_type, int, MSIX_IRQ); |
74 | MODULE_PARM_DESC(qlge_irq_type, "0 = MSI-X, 1 = MSI, 2 = Legacy."); | 74 | MODULE_PARM_DESC(qlge_irq_type, "0 = MSI-X, 1 = MSI, 2 = Legacy."); |
75 | 75 | ||
76 | static struct pci_device_id qlge_pci_tbl[] __devinitdata = { | 76 | static DEFINE_PCI_DEVICE_TABLE(qlge_pci_tbl) = { |
77 | {PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, QLGE_DEVICE_ID_8012)}, | 77 | {PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, QLGE_DEVICE_ID_8012)}, |
78 | {PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, QLGE_DEVICE_ID_8000)}, | 78 | {PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, QLGE_DEVICE_ID_8000)}, |
79 | /* required last entry */ | 79 | /* required last entry */ |
diff --git a/drivers/net/r6040.c b/drivers/net/r6040.c index f03e2e4a15a8..d68ba7a58631 100644 --- a/drivers/net/r6040.c +++ b/drivers/net/r6040.c | |||
@@ -1222,7 +1222,7 @@ static void __devexit r6040_remove_one(struct pci_dev *pdev) | |||
1222 | } | 1222 | } |
1223 | 1223 | ||
1224 | 1224 | ||
1225 | static struct pci_device_id r6040_pci_tbl[] = { | 1225 | static DEFINE_PCI_DEVICE_TABLE(r6040_pci_tbl) = { |
1226 | { PCI_DEVICE(PCI_VENDOR_ID_RDC, 0x6040) }, | 1226 | { PCI_DEVICE(PCI_VENDOR_ID_RDC, 0x6040) }, |
1227 | { 0 } | 1227 | { 0 } |
1228 | }; | 1228 | }; |
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index c403ce0a3d3a..c1bb24cf0793 100644 --- a/drivers/net/r8169.c +++ b/drivers/net/r8169.c | |||
@@ -168,7 +168,7 @@ static void rtl_hw_start_8169(struct net_device *); | |||
168 | static void rtl_hw_start_8168(struct net_device *); | 168 | static void rtl_hw_start_8168(struct net_device *); |
169 | static void rtl_hw_start_8101(struct net_device *); | 169 | static void rtl_hw_start_8101(struct net_device *); |
170 | 170 | ||
171 | static struct pci_device_id rtl8169_pci_tbl[] = { | 171 | static DEFINE_PCI_DEVICE_TABLE(rtl8169_pci_tbl) = { |
172 | { PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8129), 0, 0, RTL_CFG_0 }, | 172 | { PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8129), 0, 0, RTL_CFG_0 }, |
173 | { PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8136), 0, 0, RTL_CFG_2 }, | 173 | { PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8136), 0, 0, RTL_CFG_2 }, |
174 | { PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8167), 0, 0, RTL_CFG_0 }, | 174 | { PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8167), 0, 0, RTL_CFG_0 }, |
diff --git a/drivers/net/rrunner.c b/drivers/net/rrunner.c index 20a71749154a..085f4ec896d3 100644 --- a/drivers/net/rrunner.c +++ b/drivers/net/rrunner.c | |||
@@ -1688,7 +1688,7 @@ static int rr_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) | |||
1688 | } | 1688 | } |
1689 | } | 1689 | } |
1690 | 1690 | ||
1691 | static struct pci_device_id rr_pci_tbl[] = { | 1691 | static DEFINE_PCI_DEVICE_TABLE(rr_pci_tbl) = { |
1692 | { PCI_VENDOR_ID_ESSENTIAL, PCI_DEVICE_ID_ESSENTIAL_ROADRUNNER, | 1692 | { PCI_VENDOR_ID_ESSENTIAL, PCI_DEVICE_ID_ESSENTIAL_ROADRUNNER, |
1693 | PCI_ANY_ID, PCI_ANY_ID, }, | 1693 | PCI_ANY_ID, PCI_ANY_ID, }, |
1694 | { 0,} | 1694 | { 0,} |
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c index cc4218667cba..ac6189005c79 100644 --- a/drivers/net/s2io.c +++ b/drivers/net/s2io.c | |||
@@ -523,7 +523,7 @@ module_param_array(rts_frm_len, uint, NULL, 0); | |||
523 | * S2IO device table. | 523 | * S2IO device table. |
524 | * This table lists all the devices that this driver supports. | 524 | * This table lists all the devices that this driver supports. |
525 | */ | 525 | */ |
526 | static struct pci_device_id s2io_tbl[] __devinitdata = { | 526 | static DEFINE_PCI_DEVICE_TABLE(s2io_tbl) = { |
527 | {PCI_VENDOR_ID_S2IO, PCI_DEVICE_ID_S2IO_WIN, | 527 | {PCI_VENDOR_ID_S2IO, PCI_DEVICE_ID_S2IO_WIN, |
528 | PCI_ANY_ID, PCI_ANY_ID}, | 528 | PCI_ANY_ID, PCI_ANY_ID}, |
529 | {PCI_VENDOR_ID_S2IO, PCI_DEVICE_ID_S2IO_UNI, | 529 | {PCI_VENDOR_ID_S2IO, PCI_DEVICE_ID_S2IO_UNI, |
diff --git a/drivers/net/sc92031.c b/drivers/net/sc92031.c index e35050322f97..fd8cb506a2bb 100644 --- a/drivers/net/sc92031.c +++ b/drivers/net/sc92031.c | |||
@@ -1589,7 +1589,7 @@ out: | |||
1589 | return 0; | 1589 | return 0; |
1590 | } | 1590 | } |
1591 | 1591 | ||
1592 | static struct pci_device_id sc92031_pci_device_id_table[] __devinitdata = { | 1592 | static DEFINE_PCI_DEVICE_TABLE(sc92031_pci_device_id_table) = { |
1593 | { PCI_DEVICE(PCI_VENDOR_ID_SILAN, 0x2031) }, | 1593 | { PCI_DEVICE(PCI_VENDOR_ID_SILAN, 0x2031) }, |
1594 | { PCI_DEVICE(PCI_VENDOR_ID_SILAN, 0x8139) }, | 1594 | { PCI_DEVICE(PCI_VENDOR_ID_SILAN, 0x8139) }, |
1595 | { PCI_DEVICE(0x1088, 0x2031) }, | 1595 | { PCI_DEVICE(0x1088, 0x2031) }, |
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c index f983e3b507cc..3591cc9c39c8 100644 --- a/drivers/net/sfc/efx.c +++ b/drivers/net/sfc/efx.c | |||
@@ -1940,7 +1940,7 @@ void efx_schedule_reset(struct efx_nic *efx, enum reset_type type) | |||
1940 | **************************************************************************/ | 1940 | **************************************************************************/ |
1941 | 1941 | ||
1942 | /* PCI device ID table */ | 1942 | /* PCI device ID table */ |
1943 | static struct pci_device_id efx_pci_table[] __devinitdata = { | 1943 | static DEFINE_PCI_DEVICE_TABLE(efx_pci_table) = { |
1944 | {PCI_DEVICE(EFX_VENDID_SFC, FALCON_A_P_DEVID), | 1944 | {PCI_DEVICE(EFX_VENDID_SFC, FALCON_A_P_DEVID), |
1945 | .driver_data = (unsigned long) &falcon_a1_nic_type}, | 1945 | .driver_data = (unsigned long) &falcon_a1_nic_type}, |
1946 | {PCI_DEVICE(EFX_VENDID_SFC, FALCON_B_P_DEVID), | 1946 | {PCI_DEVICE(EFX_VENDID_SFC, FALCON_B_P_DEVID), |
diff --git a/drivers/net/sis190.c b/drivers/net/sis190.c index 31233b4c44a0..626de766443a 100644 --- a/drivers/net/sis190.c +++ b/drivers/net/sis190.c | |||
@@ -334,7 +334,7 @@ static const struct { | |||
334 | { "SiS 191 PCI Gigabit Ethernet adapter" }, | 334 | { "SiS 191 PCI Gigabit Ethernet adapter" }, |
335 | }; | 335 | }; |
336 | 336 | ||
337 | static struct pci_device_id sis190_pci_tbl[] = { | 337 | static DEFINE_PCI_DEVICE_TABLE(sis190_pci_tbl) = { |
338 | { PCI_DEVICE(PCI_VENDOR_ID_SI, 0x0190), 0, 0, 0 }, | 338 | { PCI_DEVICE(PCI_VENDOR_ID_SI, 0x0190), 0, 0, 0 }, |
339 | { PCI_DEVICE(PCI_VENDOR_ID_SI, 0x0191), 0, 0, 1 }, | 339 | { PCI_DEVICE(PCI_VENDOR_ID_SI, 0x0191), 0, 0, 1 }, |
340 | { 0, }, | 340 | { 0, }, |
diff --git a/drivers/net/sis900.c b/drivers/net/sis900.c index 7360d4bbf75e..20c5ce474891 100644 --- a/drivers/net/sis900.c +++ b/drivers/net/sis900.c | |||
@@ -106,7 +106,7 @@ static const char * card_names[] = { | |||
106 | "SiS 900 PCI Fast Ethernet", | 106 | "SiS 900 PCI Fast Ethernet", |
107 | "SiS 7016 PCI Fast Ethernet" | 107 | "SiS 7016 PCI Fast Ethernet" |
108 | }; | 108 | }; |
109 | static struct pci_device_id sis900_pci_tbl [] = { | 109 | static DEFINE_PCI_DEVICE_TABLE(sis900_pci_tbl) = { |
110 | {PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_900, | 110 | {PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_900, |
111 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, SIS_900}, | 111 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, SIS_900}, |
112 | {PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_7016, | 112 | {PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_7016, |
diff --git a/drivers/net/skfp/skfddi.c b/drivers/net/skfp/skfddi.c index 1f9698c0fb64..6b955a4f19b2 100644 --- a/drivers/net/skfp/skfddi.c +++ b/drivers/net/skfp/skfddi.c | |||
@@ -149,7 +149,7 @@ extern void mac_drv_rx_mode(struct s_smc *smc, int mode); | |||
149 | extern void mac_drv_clear_rx_queue(struct s_smc *smc); | 149 | extern void mac_drv_clear_rx_queue(struct s_smc *smc); |
150 | extern void enable_tx_irq(struct s_smc *smc, u_short queue); | 150 | extern void enable_tx_irq(struct s_smc *smc, u_short queue); |
151 | 151 | ||
152 | static struct pci_device_id skfddi_pci_tbl[] = { | 152 | static DEFINE_PCI_DEVICE_TABLE(skfddi_pci_tbl) = { |
153 | { PCI_VENDOR_ID_SK, PCI_DEVICE_ID_SK_FP, PCI_ANY_ID, PCI_ANY_ID, }, | 153 | { PCI_VENDOR_ID_SK, PCI_DEVICE_ID_SK_FP, PCI_ANY_ID, PCI_ANY_ID, }, |
154 | { } /* Terminating entry */ | 154 | { } /* Terminating entry */ |
155 | }; | 155 | }; |
diff --git a/drivers/net/skge.c b/drivers/net/skge.c index 379a3dc00163..5ff46eb18d0c 100644 --- a/drivers/net/skge.c +++ b/drivers/net/skge.c | |||
@@ -78,7 +78,7 @@ static int debug = -1; /* defaults above */ | |||
78 | module_param(debug, int, 0); | 78 | module_param(debug, int, 0); |
79 | MODULE_PARM_DESC(debug, "Debug level (0=none,...,16=all)"); | 79 | MODULE_PARM_DESC(debug, "Debug level (0=none,...,16=all)"); |
80 | 80 | ||
81 | static const struct pci_device_id skge_id_table[] = { | 81 | static DEFINE_PCI_DEVICE_TABLE(skge_id_table) = { |
82 | { PCI_DEVICE(PCI_VENDOR_ID_3COM, PCI_DEVICE_ID_3COM_3C940) }, | 82 | { PCI_DEVICE(PCI_VENDOR_ID_3COM, PCI_DEVICE_ID_3COM_3C940) }, |
83 | { PCI_DEVICE(PCI_VENDOR_ID_3COM, PCI_DEVICE_ID_3COM_3C940B) }, | 83 | { PCI_DEVICE(PCI_VENDOR_ID_3COM, PCI_DEVICE_ID_3COM_3C940B) }, |
84 | { PCI_DEVICE(PCI_VENDOR_ID_SYSKONNECT, PCI_DEVICE_ID_SYSKONNECT_GE) }, | 84 | { PCI_DEVICE(PCI_VENDOR_ID_SYSKONNECT, PCI_DEVICE_ID_SYSKONNECT_GE) }, |
diff --git a/drivers/net/smsc9420.c b/drivers/net/smsc9420.c index 12f0f5d74e3c..1495a5dd4b46 100644 --- a/drivers/net/smsc9420.c +++ b/drivers/net/smsc9420.c | |||
@@ -80,7 +80,7 @@ struct smsc9420_pdata { | |||
80 | int last_carrier; | 80 | int last_carrier; |
81 | }; | 81 | }; |
82 | 82 | ||
83 | static const struct pci_device_id smsc9420_id_table[] = { | 83 | static DEFINE_PCI_DEVICE_TABLE(smsc9420_id_table) = { |
84 | { PCI_VENDOR_ID_9420, PCI_DEVICE_ID_9420, PCI_ANY_ID, PCI_ANY_ID, }, | 84 | { PCI_VENDOR_ID_9420, PCI_DEVICE_ID_9420, PCI_ANY_ID, PCI_ANY_ID, }, |
85 | { 0, } | 85 | { 0, } |
86 | }; | 86 | }; |
diff --git a/drivers/net/spider_net.c b/drivers/net/spider_net.c index 218524857bfc..16191998ac67 100644 --- a/drivers/net/spider_net.c +++ b/drivers/net/spider_net.c | |||
@@ -72,7 +72,7 @@ MODULE_PARM_DESC(tx_descriptors, "number of descriptors used " \ | |||
72 | 72 | ||
73 | char spider_net_driver_name[] = "spidernet"; | 73 | char spider_net_driver_name[] = "spidernet"; |
74 | 74 | ||
75 | static struct pci_device_id spider_net_pci_tbl[] = { | 75 | static DEFINE_PCI_DEVICE_TABLE(spider_net_pci_tbl) = { |
76 | { PCI_VENDOR_ID_TOSHIBA_2, PCI_DEVICE_ID_TOSHIBA_SPIDER_NET, | 76 | { PCI_VENDOR_ID_TOSHIBA_2, PCI_DEVICE_ID_TOSHIBA_SPIDER_NET, |
77 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL }, | 77 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL }, |
78 | { 0, } | 78 | { 0, } |
diff --git a/drivers/net/starfire.c b/drivers/net/starfire.c index 95db60adde41..c81252d9a57c 100644 --- a/drivers/net/starfire.c +++ b/drivers/net/starfire.c | |||
@@ -301,7 +301,7 @@ enum chipset { | |||
301 | CH_6915 = 0, | 301 | CH_6915 = 0, |
302 | }; | 302 | }; |
303 | 303 | ||
304 | static struct pci_device_id starfire_pci_tbl[] = { | 304 | static DEFINE_PCI_DEVICE_TABLE(starfire_pci_tbl) = { |
305 | { 0x9004, 0x6915, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_6915 }, | 305 | { 0x9004, 0x6915, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_6915 }, |
306 | { 0, } | 306 | { 0, } |
307 | }; | 307 | }; |
diff --git a/drivers/net/sundance.c b/drivers/net/sundance.c index d58e1891ca60..0c972e560cf3 100644 --- a/drivers/net/sundance.c +++ b/drivers/net/sundance.c | |||
@@ -206,7 +206,7 @@ IVc. Errata | |||
206 | #define USE_IO_OPS 1 | 206 | #define USE_IO_OPS 1 |
207 | #endif | 207 | #endif |
208 | 208 | ||
209 | static const struct pci_device_id sundance_pci_tbl[] = { | 209 | static DEFINE_PCI_DEVICE_TABLE(sundance_pci_tbl) = { |
210 | { 0x1186, 0x1002, 0x1186, 0x1002, 0, 0, 0 }, | 210 | { 0x1186, 0x1002, 0x1186, 0x1002, 0, 0, 0 }, |
211 | { 0x1186, 0x1002, 0x1186, 0x1003, 0, 0, 1 }, | 211 | { 0x1186, 0x1002, 0x1186, 0x1003, 0, 0, 1 }, |
212 | { 0x1186, 0x1002, 0x1186, 0x1012, 0, 0, 2 }, | 212 | { 0x1186, 0x1002, 0x1186, 0x1012, 0, 0, 2 }, |
diff --git a/drivers/net/sungem.c b/drivers/net/sungem.c index b571a1babab9..b55ceb88d93f 100644 --- a/drivers/net/sungem.c +++ b/drivers/net/sungem.c | |||
@@ -107,7 +107,7 @@ MODULE_LICENSE("GPL"); | |||
107 | #define GEM_MODULE_NAME "gem" | 107 | #define GEM_MODULE_NAME "gem" |
108 | #define PFX GEM_MODULE_NAME ": " | 108 | #define PFX GEM_MODULE_NAME ": " |
109 | 109 | ||
110 | static struct pci_device_id gem_pci_tbl[] = { | 110 | static DEFINE_PCI_DEVICE_TABLE(gem_pci_tbl) = { |
111 | { PCI_VENDOR_ID_SUN, PCI_DEVICE_ID_SUN_GEM, | 111 | { PCI_VENDOR_ID_SUN, PCI_DEVICE_ID_SUN_GEM, |
112 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL }, | 112 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL }, |
113 | 113 | ||
diff --git a/drivers/net/sunhme.c b/drivers/net/sunhme.c index 6762f1c6ec8a..76ccd31cbf50 100644 --- a/drivers/net/sunhme.c +++ b/drivers/net/sunhme.c | |||
@@ -3211,7 +3211,7 @@ static void __devexit happy_meal_pci_remove(struct pci_dev *pdev) | |||
3211 | dev_set_drvdata(&pdev->dev, NULL); | 3211 | dev_set_drvdata(&pdev->dev, NULL); |
3212 | } | 3212 | } |
3213 | 3213 | ||
3214 | static struct pci_device_id happymeal_pci_ids[] = { | 3214 | static DEFINE_PCI_DEVICE_TABLE(happymeal_pci_ids) = { |
3215 | { PCI_DEVICE(PCI_VENDOR_ID_SUN, PCI_DEVICE_ID_SUN_HAPPYMEAL) }, | 3215 | { PCI_DEVICE(PCI_VENDOR_ID_SUN, PCI_DEVICE_ID_SUN_HAPPYMEAL) }, |
3216 | { } /* Terminating entry */ | 3216 | { } /* Terminating entry */ |
3217 | }; | 3217 | }; |
diff --git a/drivers/net/tc35815.c b/drivers/net/tc35815.c index 75a669d48e5e..033408f589fb 100644 --- a/drivers/net/tc35815.c +++ b/drivers/net/tc35815.c | |||
@@ -65,7 +65,7 @@ static const struct { | |||
65 | { "TOSHIBA TC35815/TX4939" }, | 65 | { "TOSHIBA TC35815/TX4939" }, |
66 | }; | 66 | }; |
67 | 67 | ||
68 | static const struct pci_device_id tc35815_pci_tbl[] = { | 68 | static DEFINE_PCI_DEVICE_TABLE(tc35815_pci_tbl) = { |
69 | {PCI_DEVICE(PCI_VENDOR_ID_TOSHIBA_2, PCI_DEVICE_ID_TOSHIBA_TC35815CF), .driver_data = TC35815CF }, | 69 | {PCI_DEVICE(PCI_VENDOR_ID_TOSHIBA_2, PCI_DEVICE_ID_TOSHIBA_TC35815CF), .driver_data = TC35815CF }, |
70 | {PCI_DEVICE(PCI_VENDOR_ID_TOSHIBA_2, PCI_DEVICE_ID_TOSHIBA_TC35815_NWU), .driver_data = TC35815_NWU }, | 70 | {PCI_DEVICE(PCI_VENDOR_ID_TOSHIBA_2, PCI_DEVICE_ID_TOSHIBA_TC35815_NWU), .driver_data = TC35815_NWU }, |
71 | {PCI_DEVICE(PCI_VENDOR_ID_TOSHIBA_2, PCI_DEVICE_ID_TOSHIBA_TC35815_TX4939), .driver_data = TC35815_TX4939 }, | 71 | {PCI_DEVICE(PCI_VENDOR_ID_TOSHIBA_2, PCI_DEVICE_ID_TOSHIBA_TC35815_TX4939), .driver_data = TC35815_TX4939 }, |
diff --git a/drivers/net/tehuti.c b/drivers/net/tehuti.c index 80b404f2b938..b907bee31fd5 100644 --- a/drivers/net/tehuti.c +++ b/drivers/net/tehuti.c | |||
@@ -64,7 +64,7 @@ | |||
64 | 64 | ||
65 | #include "tehuti.h" | 65 | #include "tehuti.h" |
66 | 66 | ||
67 | static struct pci_device_id __devinitdata bdx_pci_tbl[] = { | 67 | static DEFINE_PCI_DEVICE_TABLE(bdx_pci_tbl) = { |
68 | {0x1FC9, 0x3009, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | 68 | {0x1FC9, 0x3009, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, |
69 | {0x1FC9, 0x3010, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | 69 | {0x1FC9, 0x3010, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, |
70 | {0x1FC9, 0x3014, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | 70 | {0x1FC9, 0x3014, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, |
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 3a74d2168598..b0630cd093a3 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -174,7 +174,7 @@ static int tg3_debug = -1; /* -1 == use TG3_DEF_MSG_ENABLE as value */ | |||
174 | module_param(tg3_debug, int, 0); | 174 | module_param(tg3_debug, int, 0); |
175 | MODULE_PARM_DESC(tg3_debug, "Tigon3 bitmapped debugging message enable value"); | 175 | MODULE_PARM_DESC(tg3_debug, "Tigon3 bitmapped debugging message enable value"); |
176 | 176 | ||
177 | static struct pci_device_id tg3_pci_tbl[] = { | 177 | static DEFINE_PCI_DEVICE_TABLE(tg3_pci_tbl) = { |
178 | {PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_TIGON3_5700)}, | 178 | {PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_TIGON3_5700)}, |
179 | {PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_TIGON3_5701)}, | 179 | {PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_TIGON3_5701)}, |
180 | {PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_TIGON3_5702)}, | 180 | {PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_TIGON3_5702)}, |
diff --git a/drivers/net/tlan.c b/drivers/net/tlan.c index fabaeffb3155..613943eb6e75 100644 --- a/drivers/net/tlan.c +++ b/drivers/net/tlan.c | |||
@@ -254,7 +254,7 @@ static struct board { | |||
254 | { "Compaq NetFlex-3/E", TLAN_ADAPTER_ACTIVITY_LED, 0x83 }, /* EISA card */ | 254 | { "Compaq NetFlex-3/E", TLAN_ADAPTER_ACTIVITY_LED, 0x83 }, /* EISA card */ |
255 | }; | 255 | }; |
256 | 256 | ||
257 | static struct pci_device_id tlan_pci_tbl[] = { | 257 | static DEFINE_PCI_DEVICE_TABLE(tlan_pci_tbl) = { |
258 | { PCI_VENDOR_ID_COMPAQ, PCI_DEVICE_ID_COMPAQ_NETEL10, | 258 | { PCI_VENDOR_ID_COMPAQ, PCI_DEVICE_ID_COMPAQ_NETEL10, |
259 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, | 259 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, |
260 | { PCI_VENDOR_ID_COMPAQ, PCI_DEVICE_ID_COMPAQ_NETEL100, | 260 | { PCI_VENDOR_ID_COMPAQ, PCI_DEVICE_ID_COMPAQ_NETEL100, |
diff --git a/drivers/net/tokenring/3c359.c b/drivers/net/tokenring/3c359.c index cf552d1d9629..b0d7db9d8bb4 100644 --- a/drivers/net/tokenring/3c359.c +++ b/drivers/net/tokenring/3c359.c | |||
@@ -117,7 +117,7 @@ MODULE_PARM_DESC(message_level, "3c359: Level of reported messages") ; | |||
117 | * will be stuck with 1555 lines of hex #'s in the code. | 117 | * will be stuck with 1555 lines of hex #'s in the code. |
118 | */ | 118 | */ |
119 | 119 | ||
120 | static struct pci_device_id xl_pci_tbl[] = | 120 | static DEFINE_PCI_DEVICE_TABLE(xl_pci_tbl) = |
121 | { | 121 | { |
122 | {PCI_VENDOR_ID_3COM,PCI_DEVICE_ID_3COM_3C359, PCI_ANY_ID, PCI_ANY_ID, }, | 122 | {PCI_VENDOR_ID_3COM,PCI_DEVICE_ID_3COM_3C359, PCI_ANY_ID, PCI_ANY_ID, }, |
123 | { } /* terminate list */ | 123 | { } /* terminate list */ |
diff --git a/drivers/net/tokenring/abyss.c b/drivers/net/tokenring/abyss.c index b9db1b5a58a3..515f122777ab 100644 --- a/drivers/net/tokenring/abyss.c +++ b/drivers/net/tokenring/abyss.c | |||
@@ -45,7 +45,7 @@ static char version[] __devinitdata = | |||
45 | 45 | ||
46 | #define ABYSS_IO_EXTENT 64 | 46 | #define ABYSS_IO_EXTENT 64 |
47 | 47 | ||
48 | static struct pci_device_id abyss_pci_tbl[] = { | 48 | static DEFINE_PCI_DEVICE_TABLE(abyss_pci_tbl) = { |
49 | { PCI_VENDOR_ID_MADGE, PCI_DEVICE_ID_MADGE_MK2, | 49 | { PCI_VENDOR_ID_MADGE, PCI_DEVICE_ID_MADGE_MK2, |
50 | PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_NETWORK_TOKEN_RING << 8, 0x00ffffff, }, | 50 | PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_NETWORK_TOKEN_RING << 8, 0x00ffffff, }, |
51 | { } /* Terminating entry */ | 51 | { } /* Terminating entry */ |
diff --git a/drivers/net/tokenring/lanstreamer.c b/drivers/net/tokenring/lanstreamer.c index d6ccd59c7d07..3f9d5a25562e 100644 --- a/drivers/net/tokenring/lanstreamer.c +++ b/drivers/net/tokenring/lanstreamer.c | |||
@@ -146,7 +146,7 @@ | |||
146 | static char version[] = "LanStreamer.c v0.4.0 03/08/01 - Mike Sullivan\n" | 146 | static char version[] = "LanStreamer.c v0.4.0 03/08/01 - Mike Sullivan\n" |
147 | " v0.5.3 11/13/02 - Kent Yoder"; | 147 | " v0.5.3 11/13/02 - Kent Yoder"; |
148 | 148 | ||
149 | static struct pci_device_id streamer_pci_tbl[] = { | 149 | static DEFINE_PCI_DEVICE_TABLE(streamer_pci_tbl) = { |
150 | { PCI_VENDOR_ID_IBM, PCI_DEVICE_ID_IBM_TR, PCI_ANY_ID, PCI_ANY_ID,}, | 150 | { PCI_VENDOR_ID_IBM, PCI_DEVICE_ID_IBM_TR, PCI_ANY_ID, PCI_ANY_ID,}, |
151 | {} /* terminating entry */ | 151 | {} /* terminating entry */ |
152 | }; | 152 | }; |
diff --git a/drivers/net/tokenring/olympic.c b/drivers/net/tokenring/olympic.c index df32025c5132..f010a4dc5f19 100644 --- a/drivers/net/tokenring/olympic.c +++ b/drivers/net/tokenring/olympic.c | |||
@@ -172,7 +172,7 @@ module_param_array(message_level, int, NULL, 0) ; | |||
172 | static int network_monitor[OLYMPIC_MAX_ADAPTERS] = {0,}; | 172 | static int network_monitor[OLYMPIC_MAX_ADAPTERS] = {0,}; |
173 | module_param_array(network_monitor, int, NULL, 0); | 173 | module_param_array(network_monitor, int, NULL, 0); |
174 | 174 | ||
175 | static struct pci_device_id olympic_pci_tbl[] = { | 175 | static DEFINE_PCI_DEVICE_TABLE(olympic_pci_tbl) = { |
176 | {PCI_VENDOR_ID_IBM,PCI_DEVICE_ID_IBM_TR_WAKE,PCI_ANY_ID,PCI_ANY_ID,}, | 176 | {PCI_VENDOR_ID_IBM,PCI_DEVICE_ID_IBM_TR_WAKE,PCI_ANY_ID,PCI_ANY_ID,}, |
177 | { } /* Terminating Entry */ | 177 | { } /* Terminating Entry */ |
178 | }; | 178 | }; |
diff --git a/drivers/net/tokenring/tmspci.c b/drivers/net/tokenring/tmspci.c index f92fe86fdcae..d4c7c0c0a3d6 100644 --- a/drivers/net/tokenring/tmspci.c +++ b/drivers/net/tokenring/tmspci.c | |||
@@ -57,7 +57,7 @@ static struct card_info card_info_table[] = { | |||
57 | { {0x03, 0x01}, "3Com Token Link Velocity"}, | 57 | { {0x03, 0x01}, "3Com Token Link Velocity"}, |
58 | }; | 58 | }; |
59 | 59 | ||
60 | static struct pci_device_id tmspci_pci_tbl[] = { | 60 | static DEFINE_PCI_DEVICE_TABLE(tmspci_pci_tbl) = { |
61 | { PCI_VENDOR_ID_COMPAQ, PCI_DEVICE_ID_COMPAQ_TOKENRING, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, | 61 | { PCI_VENDOR_ID_COMPAQ, PCI_DEVICE_ID_COMPAQ_TOKENRING, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, |
62 | { PCI_VENDOR_ID_SYSKONNECT, PCI_DEVICE_ID_SYSKONNECT_TR, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1 }, | 62 | { PCI_VENDOR_ID_SYSKONNECT, PCI_DEVICE_ID_SYSKONNECT_TR, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1 }, |
63 | { PCI_VENDOR_ID_TCONRAD, PCI_DEVICE_ID_TCONRAD_TOKENRING, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 2 }, | 63 | { PCI_VENDOR_ID_TCONRAD, PCI_DEVICE_ID_TCONRAD_TOKENRING, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 2 }, |
diff --git a/drivers/net/tulip/de2104x.c b/drivers/net/tulip/de2104x.c index d4255d44cb75..87ea39e2037d 100644 --- a/drivers/net/tulip/de2104x.c +++ b/drivers/net/tulip/de2104x.c | |||
@@ -337,7 +337,7 @@ static void de21041_media_timer (unsigned long data); | |||
337 | static unsigned int de_ok_to_advertise (struct de_private *de, u32 new_media); | 337 | static unsigned int de_ok_to_advertise (struct de_private *de, u32 new_media); |
338 | 338 | ||
339 | 339 | ||
340 | static struct pci_device_id de_pci_tbl[] = { | 340 | static DEFINE_PCI_DEVICE_TABLE(de_pci_tbl) = { |
341 | { PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_TULIP, | 341 | { PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_TULIP, |
342 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, | 342 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, |
343 | { PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_TULIP_PLUS, | 343 | { PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_TULIP_PLUS, |
diff --git a/drivers/net/tulip/dmfe.c b/drivers/net/tulip/dmfe.c index ad63621913c3..8153fdd0af91 100644 --- a/drivers/net/tulip/dmfe.c +++ b/drivers/net/tulip/dmfe.c | |||
@@ -2068,7 +2068,7 @@ static void dmfe_HPNA_remote_cmd_chk(struct dmfe_board_info * db) | |||
2068 | 2068 | ||
2069 | 2069 | ||
2070 | 2070 | ||
2071 | static struct pci_device_id dmfe_pci_tbl[] = { | 2071 | static DEFINE_PCI_DEVICE_TABLE(dmfe_pci_tbl) = { |
2072 | { 0x1282, 0x9132, PCI_ANY_ID, PCI_ANY_ID, 0, 0, PCI_DM9132_ID }, | 2072 | { 0x1282, 0x9132, PCI_ANY_ID, PCI_ANY_ID, 0, 0, PCI_DM9132_ID }, |
2073 | { 0x1282, 0x9102, PCI_ANY_ID, PCI_ANY_ID, 0, 0, PCI_DM9102_ID }, | 2073 | { 0x1282, 0x9102, PCI_ANY_ID, PCI_ANY_ID, 0, 0, PCI_DM9102_ID }, |
2074 | { 0x1282, 0x9100, PCI_ANY_ID, PCI_ANY_ID, 0, 0, PCI_DM9100_ID }, | 2074 | { 0x1282, 0x9100, PCI_ANY_ID, PCI_ANY_ID, 0, 0, PCI_DM9100_ID }, |
diff --git a/drivers/net/tulip/tulip_core.c b/drivers/net/tulip/tulip_core.c index 0fa3140d65bf..64aa2d6af08b 100644 --- a/drivers/net/tulip/tulip_core.c +++ b/drivers/net/tulip/tulip_core.c | |||
@@ -207,7 +207,7 @@ struct tulip_chip_table tulip_tbl[] = { | |||
207 | }; | 207 | }; |
208 | 208 | ||
209 | 209 | ||
210 | static struct pci_device_id tulip_pci_tbl[] = { | 210 | static DEFINE_PCI_DEVICE_TABLE(tulip_pci_tbl) = { |
211 | { 0x1011, 0x0009, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DC21140 }, | 211 | { 0x1011, 0x0009, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DC21140 }, |
212 | { 0x1011, 0x0019, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DC21143 }, | 212 | { 0x1011, 0x0019, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DC21143 }, |
213 | { 0x11AD, 0x0002, PCI_ANY_ID, PCI_ANY_ID, 0, 0, LC82C168 }, | 213 | { 0x11AD, 0x0002, PCI_ANY_ID, PCI_ANY_ID, 0, 0, LC82C168 }, |
diff --git a/drivers/net/tulip/uli526x.c b/drivers/net/tulip/uli526x.c index fa019cabc355..d549042a01df 100644 --- a/drivers/net/tulip/uli526x.c +++ b/drivers/net/tulip/uli526x.c | |||
@@ -1783,7 +1783,7 @@ static u16 phy_read_1bit(unsigned long ioaddr, u32 chip_id) | |||
1783 | } | 1783 | } |
1784 | 1784 | ||
1785 | 1785 | ||
1786 | static struct pci_device_id uli526x_pci_tbl[] = { | 1786 | static DEFINE_PCI_DEVICE_TABLE(uli526x_pci_tbl) = { |
1787 | { 0x10B9, 0x5261, PCI_ANY_ID, PCI_ANY_ID, 0, 0, PCI_ULI5261_ID }, | 1787 | { 0x10B9, 0x5261, PCI_ANY_ID, PCI_ANY_ID, 0, 0, PCI_ULI5261_ID }, |
1788 | { 0x10B9, 0x5263, PCI_ANY_ID, PCI_ANY_ID, 0, 0, PCI_ULI5263_ID }, | 1788 | { 0x10B9, 0x5263, PCI_ANY_ID, PCI_ANY_ID, 0, 0, PCI_ULI5263_ID }, |
1789 | { 0, } | 1789 | { 0, } |
diff --git a/drivers/net/tulip/winbond-840.c b/drivers/net/tulip/winbond-840.c index 869a7a0005f9..23395e1ff238 100644 --- a/drivers/net/tulip/winbond-840.c +++ b/drivers/net/tulip/winbond-840.c | |||
@@ -218,7 +218,7 @@ enum chip_capability_flags { | |||
218 | CanHaveMII=1, HasBrokenTx=2, AlwaysFDX=4, FDXOnNoMII=8, | 218 | CanHaveMII=1, HasBrokenTx=2, AlwaysFDX=4, FDXOnNoMII=8, |
219 | }; | 219 | }; |
220 | 220 | ||
221 | static const struct pci_device_id w840_pci_tbl[] = { | 221 | static DEFINE_PCI_DEVICE_TABLE(w840_pci_tbl) = { |
222 | { 0x1050, 0x0840, PCI_ANY_ID, 0x8153, 0, 0, 0 }, | 222 | { 0x1050, 0x0840, PCI_ANY_ID, 0x8153, 0, 0, 0 }, |
223 | { 0x1050, 0x0840, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1 }, | 223 | { 0x1050, 0x0840, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1 }, |
224 | { 0x11f6, 0x2011, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 2 }, | 224 | { 0x11f6, 0x2011, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 2 }, |
diff --git a/drivers/net/tulip/xircom_cb.c b/drivers/net/tulip/xircom_cb.c index 9924c4c7e2d6..c84123fd635c 100644 --- a/drivers/net/tulip/xircom_cb.c +++ b/drivers/net/tulip/xircom_cb.c | |||
@@ -144,7 +144,7 @@ static int link_status(struct xircom_private *card); | |||
144 | 144 | ||
145 | 145 | ||
146 | 146 | ||
147 | static struct pci_device_id xircom_pci_table[] = { | 147 | static DEFINE_PCI_DEVICE_TABLE(xircom_pci_table) = { |
148 | {0x115D, 0x0003, PCI_ANY_ID, PCI_ANY_ID,}, | 148 | {0x115D, 0x0003, PCI_ANY_ID, PCI_ANY_ID,}, |
149 | {0,}, | 149 | {0,}, |
150 | }; | 150 | }; |
diff --git a/drivers/net/typhoon.c b/drivers/net/typhoon.c index 39f1fc650be6..6e4f754c4baf 100644 --- a/drivers/net/typhoon.c +++ b/drivers/net/typhoon.c | |||
@@ -215,7 +215,7 @@ static struct typhoon_card_info typhoon_card_info[] __devinitdata = { | |||
215 | * bit 8 indicates if this is a (0) copper or (1) fiber card | 215 | * bit 8 indicates if this is a (0) copper or (1) fiber card |
216 | * bits 12-16 indicate card type: (0) client and (1) server | 216 | * bits 12-16 indicate card type: (0) client and (1) server |
217 | */ | 217 | */ |
218 | static struct pci_device_id typhoon_pci_tbl[] = { | 218 | static DEFINE_PCI_DEVICE_TABLE(typhoon_pci_tbl) = { |
219 | { PCI_VENDOR_ID_3COM, PCI_DEVICE_ID_3COM_3CR990, | 219 | { PCI_VENDOR_ID_3COM, PCI_DEVICE_ID_3COM_3CR990, |
220 | PCI_ANY_ID, PCI_ANY_ID, 0, 0,TYPHOON_TX }, | 220 | PCI_ANY_ID, PCI_ANY_ID, 0, 0,TYPHOON_TX }, |
221 | { PCI_VENDOR_ID_3COM, PCI_DEVICE_ID_3COM_3CR990_TX_95, | 221 | { PCI_VENDOR_ID_3COM, PCI_DEVICE_ID_3COM_3CR990_TX_95, |
diff --git a/drivers/net/via-rhine.c b/drivers/net/via-rhine.c index 593e01f64e9b..6bc924cd4583 100644 --- a/drivers/net/via-rhine.c +++ b/drivers/net/via-rhine.c | |||
@@ -266,7 +266,7 @@ enum rhine_quirks { | |||
266 | /* Beware of PCI posted writes */ | 266 | /* Beware of PCI posted writes */ |
267 | #define IOSYNC do { ioread8(ioaddr + StationAddr); } while (0) | 267 | #define IOSYNC do { ioread8(ioaddr + StationAddr); } while (0) |
268 | 268 | ||
269 | static const struct pci_device_id rhine_pci_tbl[] = { | 269 | static DEFINE_PCI_DEVICE_TABLE(rhine_pci_tbl) = { |
270 | { 0x1106, 0x3043, PCI_ANY_ID, PCI_ANY_ID, }, /* VT86C100A */ | 270 | { 0x1106, 0x3043, PCI_ANY_ID, PCI_ANY_ID, }, /* VT86C100A */ |
271 | { 0x1106, 0x3065, PCI_ANY_ID, PCI_ANY_ID, }, /* VT6102 */ | 271 | { 0x1106, 0x3065, PCI_ANY_ID, PCI_ANY_ID, }, /* VT6102 */ |
272 | { 0x1106, 0x3106, PCI_ANY_ID, PCI_ANY_ID, }, /* 6105{,L,LOM} */ | 272 | { 0x1106, 0x3106, PCI_ANY_ID, PCI_ANY_ID, }, /* 6105{,L,LOM} */ |
diff --git a/drivers/net/via-velocity.c b/drivers/net/via-velocity.c index cee8fa2d2a9f..83fc3a8dd254 100644 --- a/drivers/net/via-velocity.c +++ b/drivers/net/via-velocity.c | |||
@@ -361,7 +361,7 @@ static struct velocity_info_tbl chip_info_table[] = { | |||
361 | * Describe the PCI device identifiers that we support in this | 361 | * Describe the PCI device identifiers that we support in this |
362 | * device driver. Used for hotplug autoloading. | 362 | * device driver. Used for hotplug autoloading. |
363 | */ | 363 | */ |
364 | static const struct pci_device_id velocity_id_table[] __devinitdata = { | 364 | static DEFINE_PCI_DEVICE_TABLE(velocity_id_table) = { |
365 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_612X) }, | 365 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_612X) }, |
366 | { } | 366 | { } |
367 | }; | 367 | }; |
diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c index 9cc438282d77..b896f9386110 100644 --- a/drivers/net/vmxnet3/vmxnet3_drv.c +++ b/drivers/net/vmxnet3/vmxnet3_drv.c | |||
@@ -35,7 +35,7 @@ char vmxnet3_driver_name[] = "vmxnet3"; | |||
35 | * PCI Device ID Table | 35 | * PCI Device ID Table |
36 | * Last entry must be all 0s | 36 | * Last entry must be all 0s |
37 | */ | 37 | */ |
38 | static const struct pci_device_id vmxnet3_pciid_table[] = { | 38 | static DEFINE_PCI_DEVICE_TABLE(vmxnet3_pciid_table) = { |
39 | {PCI_VDEVICE(VMWARE, PCI_DEVICE_ID_VMWARE_VMXNET3)}, | 39 | {PCI_VDEVICE(VMWARE, PCI_DEVICE_ID_VMWARE_VMXNET3)}, |
40 | {0} | 40 | {0} |
41 | }; | 41 | }; |
diff --git a/drivers/net/vxge/vxge-main.c b/drivers/net/vxge/vxge-main.c index 5f0e7ea0d493..6466bc840e6d 100644 --- a/drivers/net/vxge/vxge-main.c +++ b/drivers/net/vxge/vxge-main.c | |||
@@ -54,7 +54,7 @@ MODULE_LICENSE("Dual BSD/GPL"); | |||
54 | MODULE_DESCRIPTION("Neterion's X3100 Series 10GbE PCIe I/O" | 54 | MODULE_DESCRIPTION("Neterion's X3100 Series 10GbE PCIe I/O" |
55 | "Virtualized Server Adapter"); | 55 | "Virtualized Server Adapter"); |
56 | 56 | ||
57 | static struct pci_device_id vxge_id_table[] __devinitdata = { | 57 | static DEFINE_PCI_DEVICE_TABLE(vxge_id_table) = { |
58 | {PCI_VENDOR_ID_S2IO, PCI_DEVICE_ID_TITAN_WIN, PCI_ANY_ID, | 58 | {PCI_VENDOR_ID_S2IO, PCI_DEVICE_ID_TITAN_WIN, PCI_ANY_ID, |
59 | PCI_ANY_ID}, | 59 | PCI_ANY_ID}, |
60 | {PCI_VENDOR_ID_S2IO, PCI_DEVICE_ID_TITAN_UNI, PCI_ANY_ID, | 60 | {PCI_VENDOR_ID_S2IO, PCI_DEVICE_ID_TITAN_UNI, PCI_ANY_ID, |
diff --git a/drivers/net/wan/dscc4.c b/drivers/net/wan/dscc4.c index 3f759daf3ca4..f88c07c13197 100644 --- a/drivers/net/wan/dscc4.c +++ b/drivers/net/wan/dscc4.c | |||
@@ -2050,7 +2050,7 @@ static int __init dscc4_setup(char *str) | |||
2050 | __setup("dscc4.setup=", dscc4_setup); | 2050 | __setup("dscc4.setup=", dscc4_setup); |
2051 | #endif | 2051 | #endif |
2052 | 2052 | ||
2053 | static struct pci_device_id dscc4_pci_tbl[] = { | 2053 | static DEFINE_PCI_DEVICE_TABLE(dscc4_pci_tbl) = { |
2054 | { PCI_VENDOR_ID_SIEMENS, PCI_DEVICE_ID_SIEMENS_DSCC4, | 2054 | { PCI_VENDOR_ID_SIEMENS, PCI_DEVICE_ID_SIEMENS_DSCC4, |
2055 | PCI_ANY_ID, PCI_ANY_ID, }, | 2055 | PCI_ANY_ID, PCI_ANY_ID, }, |
2056 | { 0,} | 2056 | { 0,} |
diff --git a/drivers/net/wan/farsync.c b/drivers/net/wan/farsync.c index 9bc2e3649157..40d724a8e020 100644 --- a/drivers/net/wan/farsync.c +++ b/drivers/net/wan/farsync.c | |||
@@ -528,7 +528,7 @@ static int fst_debug_mask = { FST_DEBUG }; | |||
528 | /* | 528 | /* |
529 | * PCI ID lookup table | 529 | * PCI ID lookup table |
530 | */ | 530 | */ |
531 | static struct pci_device_id fst_pci_dev_id[] __devinitdata = { | 531 | static DEFINE_PCI_DEVICE_TABLE(fst_pci_dev_id) = { |
532 | {PCI_VENDOR_ID_FARSITE, PCI_DEVICE_ID_FARSITE_T2P, PCI_ANY_ID, | 532 | {PCI_VENDOR_ID_FARSITE, PCI_DEVICE_ID_FARSITE_T2P, PCI_ANY_ID, |
533 | PCI_ANY_ID, 0, 0, FST_TYPE_T2P}, | 533 | PCI_ANY_ID, 0, 0, FST_TYPE_T2P}, |
534 | 534 | ||
diff --git a/drivers/net/wan/lmc/lmc_main.c b/drivers/net/wan/lmc/lmc_main.c index 4b6f27e7c820..b27850377121 100644 --- a/drivers/net/wan/lmc/lmc_main.c +++ b/drivers/net/wan/lmc/lmc_main.c | |||
@@ -77,7 +77,7 @@ | |||
77 | 77 | ||
78 | static int LMC_PKT_BUF_SZ = 1542; | 78 | static int LMC_PKT_BUF_SZ = 1542; |
79 | 79 | ||
80 | static struct pci_device_id lmc_pci_tbl[] = { | 80 | static DEFINE_PCI_DEVICE_TABLE(lmc_pci_tbl) = { |
81 | { PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_TULIP_FAST, | 81 | { PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_TULIP_FAST, |
82 | PCI_VENDOR_ID_LMC, PCI_ANY_ID }, | 82 | PCI_VENDOR_ID_LMC, PCI_ANY_ID }, |
83 | { PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_TULIP_FAST, | 83 | { PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_TULIP_FAST, |
diff --git a/drivers/net/wan/pc300_drv.c b/drivers/net/wan/pc300_drv.c index aec4d3955420..f4f1c00d0d23 100644 --- a/drivers/net/wan/pc300_drv.c +++ b/drivers/net/wan/pc300_drv.c | |||
@@ -251,7 +251,7 @@ static char rcsid[] = | |||
251 | #undef PC300_DEBUG_RX | 251 | #undef PC300_DEBUG_RX |
252 | #undef PC300_DEBUG_OTHER | 252 | #undef PC300_DEBUG_OTHER |
253 | 253 | ||
254 | static struct pci_device_id cpc_pci_dev_id[] __devinitdata = { | 254 | static DEFINE_PCI_DEVICE_TABLE(cpc_pci_dev_id) = { |
255 | /* PC300/RSV or PC300/X21, 2 chan */ | 255 | /* PC300/RSV or PC300/X21, 2 chan */ |
256 | {0x120e, 0x300, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0x300}, | 256 | {0x120e, 0x300, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0x300}, |
257 | /* PC300/RSV or PC300/X21, 1 chan */ | 257 | /* PC300/RSV or PC300/X21, 1 chan */ |
diff --git a/drivers/net/wan/pc300too.c b/drivers/net/wan/pc300too.c index 60ece54bdd94..c7ab3becd261 100644 --- a/drivers/net/wan/pc300too.c +++ b/drivers/net/wan/pc300too.c | |||
@@ -481,7 +481,7 @@ static int __devinit pc300_pci_init_one(struct pci_dev *pdev, | |||
481 | 481 | ||
482 | 482 | ||
483 | 483 | ||
484 | static struct pci_device_id pc300_pci_tbl[] __devinitdata = { | 484 | static DEFINE_PCI_DEVICE_TABLE(pc300_pci_tbl) = { |
485 | { PCI_VENDOR_ID_CYCLADES, PCI_DEVICE_ID_PC300_RX_1, PCI_ANY_ID, | 485 | { PCI_VENDOR_ID_CYCLADES, PCI_DEVICE_ID_PC300_RX_1, PCI_ANY_ID, |
486 | PCI_ANY_ID, 0, 0, 0 }, | 486 | PCI_ANY_ID, 0, 0, 0 }, |
487 | { PCI_VENDOR_ID_CYCLADES, PCI_DEVICE_ID_PC300_RX_2, PCI_ANY_ID, | 487 | { PCI_VENDOR_ID_CYCLADES, PCI_DEVICE_ID_PC300_RX_2, PCI_ANY_ID, |
diff --git a/drivers/net/wan/pci200syn.c b/drivers/net/wan/pci200syn.c index f1340faaf022..e2cff64a446a 100644 --- a/drivers/net/wan/pci200syn.c +++ b/drivers/net/wan/pci200syn.c | |||
@@ -417,7 +417,7 @@ static int __devinit pci200_pci_init_one(struct pci_dev *pdev, | |||
417 | 417 | ||
418 | 418 | ||
419 | 419 | ||
420 | static struct pci_device_id pci200_pci_tbl[] __devinitdata = { | 420 | static DEFINE_PCI_DEVICE_TABLE(pci200_pci_tbl) = { |
421 | { PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050, PCI_VENDOR_ID_PLX, | 421 | { PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050, PCI_VENDOR_ID_PLX, |
422 | PCI_DEVICE_ID_PLX_PCI200SYN, 0, 0, 0 }, | 422 | PCI_DEVICE_ID_PLX_PCI200SYN, 0, 0, 0 }, |
423 | { 0, } | 423 | { 0, } |
diff --git a/drivers/net/wan/wanxl.c b/drivers/net/wan/wanxl.c index daee8a0624ee..541c700dceef 100644 --- a/drivers/net/wan/wanxl.c +++ b/drivers/net/wan/wanxl.c | |||
@@ -814,7 +814,7 @@ static int __devinit wanxl_pci_init_one(struct pci_dev *pdev, | |||
814 | return 0; | 814 | return 0; |
815 | } | 815 | } |
816 | 816 | ||
817 | static struct pci_device_id wanxl_pci_tbl[] __devinitdata = { | 817 | static DEFINE_PCI_DEVICE_TABLE(wanxl_pci_tbl) = { |
818 | { PCI_VENDOR_ID_SBE, PCI_DEVICE_ID_SBE_WANXL100, PCI_ANY_ID, | 818 | { PCI_VENDOR_ID_SBE, PCI_DEVICE_ID_SBE_WANXL100, PCI_ANY_ID, |
819 | PCI_ANY_ID, 0, 0, 0 }, | 819 | PCI_ANY_ID, 0, 0, 0 }, |
820 | { PCI_VENDOR_ID_SBE, PCI_DEVICE_ID_SBE_WANXL200, PCI_ANY_ID, | 820 | { PCI_VENDOR_ID_SBE, PCI_DEVICE_ID_SBE_WANXL200, PCI_ANY_ID, |
diff --git a/drivers/net/wireless/adm8211.c b/drivers/net/wireless/adm8211.c index e1f04bb437e3..e6ca3eb4c0d3 100644 --- a/drivers/net/wireless/adm8211.c +++ b/drivers/net/wireless/adm8211.c | |||
@@ -39,7 +39,7 @@ static unsigned int rx_ring_size __read_mostly = 16; | |||
39 | module_param(tx_ring_size, uint, 0); | 39 | module_param(tx_ring_size, uint, 0); |
40 | module_param(rx_ring_size, uint, 0); | 40 | module_param(rx_ring_size, uint, 0); |
41 | 41 | ||
42 | static struct pci_device_id adm8211_pci_id_table[] __devinitdata = { | 42 | static DEFINE_PCI_DEVICE_TABLE(adm8211_pci_id_table) = { |
43 | /* ADMtek ADM8211 */ | 43 | /* ADMtek ADM8211 */ |
44 | { PCI_DEVICE(0x10B7, 0x6000) }, /* 3Com 3CRSHPW796 */ | 44 | { PCI_DEVICE(0x10B7, 0x6000) }, /* 3Com 3CRSHPW796 */ |
45 | { PCI_DEVICE(0x1200, 0x8201) }, /* ? */ | 45 | { PCI_DEVICE(0x1200, 0x8201) }, /* ? */ |
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index 4331d675fcc6..37e4ab737f2a 100644 --- a/drivers/net/wireless/airo.c +++ b/drivers/net/wireless/airo.c | |||
@@ -57,7 +57,7 @@ | |||
57 | #define DRV_NAME "airo" | 57 | #define DRV_NAME "airo" |
58 | 58 | ||
59 | #ifdef CONFIG_PCI | 59 | #ifdef CONFIG_PCI |
60 | static struct pci_device_id card_ids[] = { | 60 | static DEFINE_PCI_DEVICE_TABLE(card_ids) = { |
61 | { 0x14b9, 1, PCI_ANY_ID, PCI_ANY_ID, }, | 61 | { 0x14b9, 1, PCI_ANY_ID, PCI_ANY_ID, }, |
62 | { 0x14b9, 0x4500, PCI_ANY_ID, PCI_ANY_ID }, | 62 | { 0x14b9, 0x4500, PCI_ANY_ID, PCI_ANY_ID }, |
63 | { 0x14b9, 0x4800, PCI_ANY_ID, PCI_ANY_ID, }, | 63 | { 0x14b9, 0x4800, PCI_ANY_ID, PCI_ANY_ID, }, |
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index fdfaf0f618f1..72e5ed51c0af 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c | |||
@@ -83,7 +83,7 @@ MODULE_VERSION("0.6.0 (EXPERIMENTAL)"); | |||
83 | 83 | ||
84 | 84 | ||
85 | /* Known PCI ids */ | 85 | /* Known PCI ids */ |
86 | static const struct pci_device_id ath5k_pci_id_table[] = { | 86 | static DEFINE_PCI_DEVICE_TABLE(ath5k_pci_id_table) = { |
87 | { PCI_VDEVICE(ATHEROS, 0x0207) }, /* 5210 early */ | 87 | { PCI_VDEVICE(ATHEROS, 0x0207) }, /* 5210 early */ |
88 | { PCI_VDEVICE(ATHEROS, 0x0007) }, /* 5210 */ | 88 | { PCI_VDEVICE(ATHEROS, 0x0007) }, /* 5210 */ |
89 | { PCI_VDEVICE(ATHEROS, 0x0011) }, /* 5311 - this is on AHB bus !*/ | 89 | { PCI_VDEVICE(ATHEROS, 0x0011) }, /* 5311 - this is on AHB bus !*/ |
diff --git a/drivers/net/wireless/ath/ath9k/pci.c b/drivers/net/wireless/ath/ath9k/pci.c index f7af5ea54753..ee617205cb4a 100644 --- a/drivers/net/wireless/ath/ath9k/pci.c +++ b/drivers/net/wireless/ath/ath9k/pci.c | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <linux/pci.h> | 18 | #include <linux/pci.h> |
19 | #include "ath9k.h" | 19 | #include "ath9k.h" |
20 | 20 | ||
21 | static struct pci_device_id ath_pci_id_table[] __devinitdata = { | 21 | static DEFINE_PCI_DEVICE_TABLE(ath_pci_id_table) = { |
22 | { PCI_VDEVICE(ATHEROS, 0x0023) }, /* PCI */ | 22 | { PCI_VDEVICE(ATHEROS, 0x0023) }, /* PCI */ |
23 | { PCI_VDEVICE(ATHEROS, 0x0024) }, /* PCI-E */ | 23 | { PCI_VDEVICE(ATHEROS, 0x0024) }, /* PCI-E */ |
24 | { PCI_VDEVICE(ATHEROS, 0x0027) }, /* PCI */ | 24 | { PCI_VDEVICE(ATHEROS, 0x0027) }, /* PCI */ |
diff --git a/drivers/net/wireless/atmel_pci.c b/drivers/net/wireless/atmel_pci.c index 92f87fbe750f..9ab1192004c0 100644 --- a/drivers/net/wireless/atmel_pci.c +++ b/drivers/net/wireless/atmel_pci.c | |||
@@ -31,7 +31,7 @@ MODULE_DESCRIPTION("Support for Atmel at76c50x 802.11 wireless ethernet cards.") | |||
31 | MODULE_LICENSE("GPL"); | 31 | MODULE_LICENSE("GPL"); |
32 | MODULE_SUPPORTED_DEVICE("Atmel at76c506 PCI wireless cards"); | 32 | MODULE_SUPPORTED_DEVICE("Atmel at76c506 PCI wireless cards"); |
33 | 33 | ||
34 | static struct pci_device_id card_ids[] = { | 34 | static DEFINE_PCI_DEVICE_TABLE(card_ids) = { |
35 | { 0x1114, 0x0506, PCI_ANY_ID, PCI_ANY_ID }, | 35 | { 0x1114, 0x0506, PCI_ANY_ID, PCI_ANY_ID }, |
36 | { 0, } | 36 | { 0, } |
37 | }; | 37 | }; |
diff --git a/drivers/net/wireless/hostap/hostap_pci.c b/drivers/net/wireless/hostap/hostap_pci.c index 8fdd41f4b4f2..4d97ae37499b 100644 --- a/drivers/net/wireless/hostap/hostap_pci.c +++ b/drivers/net/wireless/hostap/hostap_pci.c | |||
@@ -39,7 +39,7 @@ struct hostap_pci_priv { | |||
39 | /* FIX: do we need mb/wmb/rmb with memory operations? */ | 39 | /* FIX: do we need mb/wmb/rmb with memory operations? */ |
40 | 40 | ||
41 | 41 | ||
42 | static struct pci_device_id prism2_pci_id_table[] __devinitdata = { | 42 | static DEFINE_PCI_DEVICE_TABLE(prism2_pci_id_table) = { |
43 | /* Intersil Prism3 ISL3872 11Mb/s WLAN Controller */ | 43 | /* Intersil Prism3 ISL3872 11Mb/s WLAN Controller */ |
44 | { 0x1260, 0x3872, PCI_ANY_ID, PCI_ANY_ID }, | 44 | { 0x1260, 0x3872, PCI_ANY_ID, PCI_ANY_ID }, |
45 | /* Intersil Prism2.5 ISL3874 11Mb/s WLAN Controller */ | 45 | /* Intersil Prism2.5 ISL3874 11Mb/s WLAN Controller */ |
diff --git a/drivers/net/wireless/hostap/hostap_plx.c b/drivers/net/wireless/hostap/hostap_plx.c index 0e5d51086a44..fc04ccdc5bef 100644 --- a/drivers/net/wireless/hostap/hostap_plx.c +++ b/drivers/net/wireless/hostap/hostap_plx.c | |||
@@ -60,7 +60,7 @@ struct hostap_plx_priv { | |||
60 | 60 | ||
61 | #define PLXDEV(vendor,dev,str) { vendor, dev, PCI_ANY_ID, PCI_ANY_ID } | 61 | #define PLXDEV(vendor,dev,str) { vendor, dev, PCI_ANY_ID, PCI_ANY_ID } |
62 | 62 | ||
63 | static struct pci_device_id prism2_plx_id_table[] __devinitdata = { | 63 | static DEFINE_PCI_DEVICE_TABLE(prism2_plx_id_table) = { |
64 | PLXDEV(0x10b7, 0x7770, "3Com AirConnect PCI 777A"), | 64 | PLXDEV(0x10b7, 0x7770, "3Com AirConnect PCI 777A"), |
65 | PLXDEV(0x111a, 0x1023, "Siemens SpeedStream SS1023"), | 65 | PLXDEV(0x111a, 0x1023, "Siemens SpeedStream SS1023"), |
66 | PLXDEV(0x126c, 0x8030, "Nortel emobility"), | 66 | PLXDEV(0x126c, 0x8030, "Nortel emobility"), |
diff --git a/drivers/net/wireless/ipw2x00/ipw2100.c b/drivers/net/wireless/ipw2x00/ipw2100.c index 56afcf041f81..9b72c45a7748 100644 --- a/drivers/net/wireless/ipw2x00/ipw2100.c +++ b/drivers/net/wireless/ipw2x00/ipw2100.c | |||
@@ -6585,7 +6585,7 @@ static void ipw2100_shutdown(struct pci_dev *pci_dev) | |||
6585 | 6585 | ||
6586 | #define IPW2100_DEV_ID(x) { PCI_VENDOR_ID_INTEL, 0x1043, 0x8086, x } | 6586 | #define IPW2100_DEV_ID(x) { PCI_VENDOR_ID_INTEL, 0x1043, 0x8086, x } |
6587 | 6587 | ||
6588 | static struct pci_device_id ipw2100_pci_id_table[] __devinitdata = { | 6588 | static DEFINE_PCI_DEVICE_TABLE(ipw2100_pci_id_table) = { |
6589 | IPW2100_DEV_ID(0x2520), /* IN 2100A mPCI 3A */ | 6589 | IPW2100_DEV_ID(0x2520), /* IN 2100A mPCI 3A */ |
6590 | IPW2100_DEV_ID(0x2521), /* IN 2100A mPCI 3B */ | 6590 | IPW2100_DEV_ID(0x2521), /* IN 2100A mPCI 3B */ |
6591 | IPW2100_DEV_ID(0x2524), /* IN 2100A mPCI 3B */ | 6591 | IPW2100_DEV_ID(0x2524), /* IN 2100A mPCI 3B */ |
diff --git a/drivers/net/wireless/ipw2x00/ipw2200.c b/drivers/net/wireless/ipw2x00/ipw2200.c index 09ddd3e6bedc..63c2a7ade5fb 100644 --- a/drivers/net/wireless/ipw2x00/ipw2200.c +++ b/drivers/net/wireless/ipw2x00/ipw2200.c | |||
@@ -11524,7 +11524,7 @@ out: | |||
11524 | } | 11524 | } |
11525 | 11525 | ||
11526 | /* PCI driver stuff */ | 11526 | /* PCI driver stuff */ |
11527 | static struct pci_device_id card_ids[] = { | 11527 | static DEFINE_PCI_DEVICE_TABLE(card_ids) = { |
11528 | {PCI_VENDOR_ID_INTEL, 0x1043, 0x8086, 0x2701, 0, 0, 0}, | 11528 | {PCI_VENDOR_ID_INTEL, 0x1043, 0x8086, 0x2701, 0, 0, 0}, |
11529 | {PCI_VENDOR_ID_INTEL, 0x1043, 0x8086, 0x2702, 0, 0, 0}, | 11529 | {PCI_VENDOR_ID_INTEL, 0x1043, 0x8086, 0x2702, 0, 0, 0}, |
11530 | {PCI_VENDOR_ID_INTEL, 0x1043, 0x8086, 0x2711, 0, 0, 0}, | 11530 | {PCI_VENDOR_ID_INTEL, 0x1043, 0x8086, 0x2711, 0, 0, 0}, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index 28ffe4c826d8..6cde661ce0bc 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -2849,7 +2849,7 @@ static struct iwl_cfg iwl3945_abg_cfg = { | |||
2849 | .broken_powersave = true, | 2849 | .broken_powersave = true, |
2850 | }; | 2850 | }; |
2851 | 2851 | ||
2852 | struct pci_device_id iwl3945_hw_card_ids[] = { | 2852 | DEFINE_PCI_DEVICE_TABLE(iwl3945_hw_card_ids) = { |
2853 | {IWL_PCI_DEVICE(0x4222, 0x1005, iwl3945_bg_cfg)}, | 2853 | {IWL_PCI_DEVICE(0x4222, 0x1005, iwl3945_bg_cfg)}, |
2854 | {IWL_PCI_DEVICE(0x4222, 0x1034, iwl3945_bg_cfg)}, | 2854 | {IWL_PCI_DEVICE(0x4222, 0x1034, iwl3945_bg_cfg)}, |
2855 | {IWL_PCI_DEVICE(0x4222, 0x1044, iwl3945_bg_cfg)}, | 2855 | {IWL_PCI_DEVICE(0x4222, 0x1044, iwl3945_bg_cfg)}, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.h b/drivers/net/wireless/iwlwifi/iwl-3945.h index 3ec2fe370b58..bc532ff4f883 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.h +++ b/drivers/net/wireless/iwlwifi/iwl-3945.h | |||
@@ -37,7 +37,7 @@ | |||
37 | #include <net/ieee80211_radiotap.h> | 37 | #include <net/ieee80211_radiotap.h> |
38 | 38 | ||
39 | /* Hardware specific file defines the PCI IDs table for that hardware module */ | 39 | /* Hardware specific file defines the PCI IDs table for that hardware module */ |
40 | extern struct pci_device_id iwl3945_hw_card_ids[]; | 40 | extern const struct pci_device_id iwl3945_hw_card_ids[]; |
41 | 41 | ||
42 | #include "iwl-csr.h" | 42 | #include "iwl-csr.h" |
43 | #include "iwl-prph.h" | 43 | #include "iwl-prph.h" |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 771b03c1c7c5..c8fec626b714 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -3766,7 +3766,7 @@ static void __devexit iwl_pci_remove(struct pci_dev *pdev) | |||
3766 | *****************************************************************************/ | 3766 | *****************************************************************************/ |
3767 | 3767 | ||
3768 | /* Hardware specific file defines the PCI IDs table for that hardware module */ | 3768 | /* Hardware specific file defines the PCI IDs table for that hardware module */ |
3769 | static struct pci_device_id iwl_hw_card_ids[] = { | 3769 | static DEFINE_PCI_DEVICE_TABLE(iwl_hw_card_ids) = { |
3770 | #ifdef CONFIG_IWL4965 | 3770 | #ifdef CONFIG_IWL4965 |
3771 | {IWL_PCI_DEVICE(0x4229, PCI_ANY_ID, iwl4965_agn_cfg)}, | 3771 | {IWL_PCI_DEVICE(0x4229, PCI_ANY_ID, iwl4965_agn_cfg)}, |
3772 | {IWL_PCI_DEVICE(0x4230, PCI_ANY_ID, iwl4965_agn_cfg)}, | 3772 | {IWL_PCI_DEVICE(0x4230, PCI_ANY_ID, iwl4965_agn_cfg)}, |
diff --git a/drivers/net/wireless/orinoco/orinoco_nortel.c b/drivers/net/wireless/orinoco/orinoco_nortel.c index c13a4c383410..075f446b3139 100644 --- a/drivers/net/wireless/orinoco/orinoco_nortel.c +++ b/drivers/net/wireless/orinoco/orinoco_nortel.c | |||
@@ -274,7 +274,7 @@ static void __devexit orinoco_nortel_remove_one(struct pci_dev *pdev) | |||
274 | pci_disable_device(pdev); | 274 | pci_disable_device(pdev); |
275 | } | 275 | } |
276 | 276 | ||
277 | static struct pci_device_id orinoco_nortel_id_table[] = { | 277 | static DEFINE_PCI_DEVICE_TABLE(orinoco_nortel_id_table) = { |
278 | /* Nortel emobility PCI */ | 278 | /* Nortel emobility PCI */ |
279 | {0x126c, 0x8030, PCI_ANY_ID, PCI_ANY_ID,}, | 279 | {0x126c, 0x8030, PCI_ANY_ID, PCI_ANY_ID,}, |
280 | /* Symbol LA-4123 PCI */ | 280 | /* Symbol LA-4123 PCI */ |
diff --git a/drivers/net/wireless/orinoco/orinoco_pci.c b/drivers/net/wireless/orinoco/orinoco_pci.c index fea7781948e7..bda5317cc596 100644 --- a/drivers/net/wireless/orinoco/orinoco_pci.c +++ b/drivers/net/wireless/orinoco/orinoco_pci.c | |||
@@ -212,7 +212,7 @@ static void __devexit orinoco_pci_remove_one(struct pci_dev *pdev) | |||
212 | pci_disable_device(pdev); | 212 | pci_disable_device(pdev); |
213 | } | 213 | } |
214 | 214 | ||
215 | static struct pci_device_id orinoco_pci_id_table[] = { | 215 | static DEFINE_PCI_DEVICE_TABLE(orinoco_pci_id_table) = { |
216 | /* Intersil Prism 3 */ | 216 | /* Intersil Prism 3 */ |
217 | {0x1260, 0x3872, PCI_ANY_ID, PCI_ANY_ID,}, | 217 | {0x1260, 0x3872, PCI_ANY_ID, PCI_ANY_ID,}, |
218 | /* Intersil Prism 2.5 */ | 218 | /* Intersil Prism 2.5 */ |
diff --git a/drivers/net/wireless/orinoco/orinoco_plx.c b/drivers/net/wireless/orinoco/orinoco_plx.c index 3f2942a1e4f5..e0d5874ab42f 100644 --- a/drivers/net/wireless/orinoco/orinoco_plx.c +++ b/drivers/net/wireless/orinoco/orinoco_plx.c | |||
@@ -310,7 +310,7 @@ static void __devexit orinoco_plx_remove_one(struct pci_dev *pdev) | |||
310 | pci_disable_device(pdev); | 310 | pci_disable_device(pdev); |
311 | } | 311 | } |
312 | 312 | ||
313 | static struct pci_device_id orinoco_plx_id_table[] = { | 313 | static DEFINE_PCI_DEVICE_TABLE(orinoco_plx_id_table) = { |
314 | {0x111a, 0x1023, PCI_ANY_ID, PCI_ANY_ID,}, /* Siemens SpeedStream SS1023 */ | 314 | {0x111a, 0x1023, PCI_ANY_ID, PCI_ANY_ID,}, /* Siemens SpeedStream SS1023 */ |
315 | {0x1385, 0x4100, PCI_ANY_ID, PCI_ANY_ID,}, /* Netgear MA301 */ | 315 | {0x1385, 0x4100, PCI_ANY_ID, PCI_ANY_ID,}, /* Netgear MA301 */ |
316 | {0x15e8, 0x0130, PCI_ANY_ID, PCI_ANY_ID,}, /* Correga - does this work? */ | 316 | {0x15e8, 0x0130, PCI_ANY_ID, PCI_ANY_ID,}, /* Correga - does this work? */ |
diff --git a/drivers/net/wireless/orinoco/orinoco_tmd.c b/drivers/net/wireless/orinoco/orinoco_tmd.c index d3452548cc71..88cbc7902aa0 100644 --- a/drivers/net/wireless/orinoco/orinoco_tmd.c +++ b/drivers/net/wireless/orinoco/orinoco_tmd.c | |||
@@ -203,7 +203,7 @@ static void __devexit orinoco_tmd_remove_one(struct pci_dev *pdev) | |||
203 | pci_disable_device(pdev); | 203 | pci_disable_device(pdev); |
204 | } | 204 | } |
205 | 205 | ||
206 | static struct pci_device_id orinoco_tmd_id_table[] = { | 206 | static DEFINE_PCI_DEVICE_TABLE(orinoco_tmd_id_table) = { |
207 | {0x15e8, 0x0131, PCI_ANY_ID, PCI_ANY_ID,}, /* NDC and OEMs, e.g. pheecom */ | 207 | {0x15e8, 0x0131, PCI_ANY_ID, PCI_ANY_ID,}, /* NDC and OEMs, e.g. pheecom */ |
208 | {0,}, | 208 | {0,}, |
209 | }; | 209 | }; |
diff --git a/drivers/net/wireless/p54/p54pci.c b/drivers/net/wireless/p54/p54pci.c index a15962a19b2a..fab41f507bd3 100644 --- a/drivers/net/wireless/p54/p54pci.c +++ b/drivers/net/wireless/p54/p54pci.c | |||
@@ -31,7 +31,7 @@ MODULE_LICENSE("GPL"); | |||
31 | MODULE_ALIAS("prism54pci"); | 31 | MODULE_ALIAS("prism54pci"); |
32 | MODULE_FIRMWARE("isl3886pci"); | 32 | MODULE_FIRMWARE("isl3886pci"); |
33 | 33 | ||
34 | static struct pci_device_id p54p_table[] __devinitdata = { | 34 | static DEFINE_PCI_DEVICE_TABLE(p54p_table) = { |
35 | /* Intersil PRISM Duette/Prism GT Wireless LAN adapter */ | 35 | /* Intersil PRISM Duette/Prism GT Wireless LAN adapter */ |
36 | { PCI_DEVICE(0x1260, 0x3890) }, | 36 | { PCI_DEVICE(0x1260, 0x3890) }, |
37 | /* 3COM 3CRWE154G72 Wireless LAN adapter */ | 37 | /* 3COM 3CRWE154G72 Wireless LAN adapter */ |
diff --git a/drivers/net/wireless/prism54/islpci_hotplug.c b/drivers/net/wireless/prism54/islpci_hotplug.c index e4f2bb7368f2..dc14420a9adc 100644 --- a/drivers/net/wireless/prism54/islpci_hotplug.c +++ b/drivers/net/wireless/prism54/islpci_hotplug.c | |||
@@ -39,7 +39,7 @@ module_param(init_pcitm, int, 0); | |||
39 | * driver_data | 39 | * driver_data |
40 | * If you have an update for this please contact prism54-devel@prism54.org | 40 | * If you have an update for this please contact prism54-devel@prism54.org |
41 | * The latest list can be found at http://prism54.org/supported_cards.php */ | 41 | * The latest list can be found at http://prism54.org/supported_cards.php */ |
42 | static const struct pci_device_id prism54_id_tbl[] = { | 42 | static DEFINE_PCI_DEVICE_TABLE(prism54_id_tbl) = { |
43 | /* Intersil PRISM Duette/Prism GT Wireless LAN adapter */ | 43 | /* Intersil PRISM Duette/Prism GT Wireless LAN adapter */ |
44 | { | 44 | { |
45 | 0x1260, 0x3890, | 45 | 0x1260, 0x3890, |
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.c b/drivers/net/wireless/rt2x00/rt2400pci.c index d86d233c6810..aa579eb8723f 100644 --- a/drivers/net/wireless/rt2x00/rt2400pci.c +++ b/drivers/net/wireless/rt2x00/rt2400pci.c | |||
@@ -1642,7 +1642,7 @@ static const struct rt2x00_ops rt2400pci_ops = { | |||
1642 | /* | 1642 | /* |
1643 | * RT2400pci module information. | 1643 | * RT2400pci module information. |
1644 | */ | 1644 | */ |
1645 | static struct pci_device_id rt2400pci_device_table[] = { | 1645 | static DEFINE_PCI_DEVICE_TABLE(rt2400pci_device_table) = { |
1646 | { PCI_DEVICE(0x1814, 0x0101), PCI_DEVICE_DATA(&rt2400pci_ops) }, | 1646 | { PCI_DEVICE(0x1814, 0x0101), PCI_DEVICE_DATA(&rt2400pci_ops) }, |
1647 | { 0, } | 1647 | { 0, } |
1648 | }; | 1648 | }; |
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c index 46cbc6ef66ab..77ee1df7933f 100644 --- a/drivers/net/wireless/rt2x00/rt2500pci.c +++ b/drivers/net/wireless/rt2x00/rt2500pci.c | |||
@@ -1940,7 +1940,7 @@ static const struct rt2x00_ops rt2500pci_ops = { | |||
1940 | /* | 1940 | /* |
1941 | * RT2500pci module information. | 1941 | * RT2500pci module information. |
1942 | */ | 1942 | */ |
1943 | static struct pci_device_id rt2500pci_device_table[] = { | 1943 | static DEFINE_PCI_DEVICE_TABLE(rt2500pci_device_table) = { |
1944 | { PCI_DEVICE(0x1814, 0x0201), PCI_DEVICE_DATA(&rt2500pci_ops) }, | 1944 | { PCI_DEVICE(0x1814, 0x0201), PCI_DEVICE_DATA(&rt2500pci_ops) }, |
1945 | { 0, } | 1945 | { 0, } |
1946 | }; | 1946 | }; |
diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c index b93eabb4fbe1..99095e1ee13b 100644 --- a/drivers/net/wireless/rt2x00/rt2800pci.c +++ b/drivers/net/wireless/rt2x00/rt2800pci.c | |||
@@ -1208,7 +1208,7 @@ static const struct rt2x00_ops rt2800pci_ops = { | |||
1208 | /* | 1208 | /* |
1209 | * RT2800pci module information. | 1209 | * RT2800pci module information. |
1210 | */ | 1210 | */ |
1211 | static struct pci_device_id rt2800pci_device_table[] = { | 1211 | static DEFINE_PCI_DEVICE_TABLE(rt2800pci_device_table) = { |
1212 | { PCI_DEVICE(0x1462, 0x891a), PCI_DEVICE_DATA(&rt2800pci_ops) }, | 1212 | { PCI_DEVICE(0x1462, 0x891a), PCI_DEVICE_DATA(&rt2800pci_ops) }, |
1213 | { PCI_DEVICE(0x1432, 0x7708), PCI_DEVICE_DATA(&rt2800pci_ops) }, | 1213 | { PCI_DEVICE(0x1432, 0x7708), PCI_DEVICE_DATA(&rt2800pci_ops) }, |
1214 | { PCI_DEVICE(0x1432, 0x7727), PCI_DEVICE_DATA(&rt2800pci_ops) }, | 1214 | { PCI_DEVICE(0x1432, 0x7727), PCI_DEVICE_DATA(&rt2800pci_ops) }, |
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c index c353b497a65d..1f97a797bc41 100644 --- a/drivers/net/wireless/rt2x00/rt61pci.c +++ b/drivers/net/wireless/rt2x00/rt61pci.c | |||
@@ -2807,7 +2807,7 @@ static const struct rt2x00_ops rt61pci_ops = { | |||
2807 | /* | 2807 | /* |
2808 | * RT61pci module information. | 2808 | * RT61pci module information. |
2809 | */ | 2809 | */ |
2810 | static struct pci_device_id rt61pci_device_table[] = { | 2810 | static DEFINE_PCI_DEVICE_TABLE(rt61pci_device_table) = { |
2811 | /* RT2561s */ | 2811 | /* RT2561s */ |
2812 | { PCI_DEVICE(0x1814, 0x0301), PCI_DEVICE_DATA(&rt61pci_ops) }, | 2812 | { PCI_DEVICE(0x1814, 0x0301), PCI_DEVICE_DATA(&rt61pci_ops) }, |
2813 | /* RT2561 v2 */ | 2813 | /* RT2561 v2 */ |
diff --git a/drivers/net/wireless/rtl818x/rtl8180_dev.c b/drivers/net/wireless/rtl818x/rtl8180_dev.c index 5a2b7199f5d5..b9192bfcc557 100644 --- a/drivers/net/wireless/rtl818x/rtl8180_dev.c +++ b/drivers/net/wireless/rtl818x/rtl8180_dev.c | |||
@@ -33,7 +33,7 @@ MODULE_AUTHOR("Andrea Merello <andreamrl@tiscali.it>"); | |||
33 | MODULE_DESCRIPTION("RTL8180 / RTL8185 PCI wireless driver"); | 33 | MODULE_DESCRIPTION("RTL8180 / RTL8185 PCI wireless driver"); |
34 | MODULE_LICENSE("GPL"); | 34 | MODULE_LICENSE("GPL"); |
35 | 35 | ||
36 | static struct pci_device_id rtl8180_table[] __devinitdata = { | 36 | static DEFINE_PCI_DEVICE_TABLE(rtl8180_table) = { |
37 | /* rtl8185 */ | 37 | /* rtl8185 */ |
38 | { PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8185) }, | 38 | { PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8185) }, |
39 | { PCI_DEVICE(PCI_VENDOR_ID_BELKIN, 0x700f) }, | 39 | { PCI_DEVICE(PCI_VENDOR_ID_BELKIN, 0x700f) }, |
diff --git a/drivers/net/yellowfin.c b/drivers/net/yellowfin.c index 0f773a9a3ff2..8b231b30fd12 100644 --- a/drivers/net/yellowfin.c +++ b/drivers/net/yellowfin.c | |||
@@ -237,7 +237,7 @@ static const struct pci_id_info pci_id_tbl[] = { | |||
237 | { } | 237 | { } |
238 | }; | 238 | }; |
239 | 239 | ||
240 | static const struct pci_device_id yellowfin_pci_tbl[] = { | 240 | static DEFINE_PCI_DEVICE_TABLE(yellowfin_pci_tbl) = { |
241 | { 0x1000, 0x0702, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, | 241 | { 0x1000, 0x0702, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, |
242 | { 0x1000, 0x0701, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1 }, | 242 | { 0x1000, 0x0701, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1 }, |
243 | { } | 243 | { } |