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>
This commit is contained in:

committed by
David S. Miller

parent
108316c1bd
commit
a3aa18842a
@@ -102,7 +102,7 @@ struct ems_pci_card {
|
||||
|
||||
#define EMS_PCI_BASE_SIZE 4096 /* size of controller area */
|
||||
|
||||
static struct pci_device_id ems_pci_tbl[] = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(ems_pci_tbl) = {
|
||||
/* CPC-PCI v1 */
|
||||
{PCI_VENDOR_ID_SIEMENS, 0x2104, PCI_ANY_ID, PCI_ANY_ID,},
|
||||
/* CPC-PCI v2 */
|
||||
|
@@ -109,7 +109,7 @@ struct kvaser_pci {
|
||||
#define KVASER_PCI_VENDOR_ID2 0x1a07 /* the PCI device and vendor IDs */
|
||||
#define KVASER_PCI_DEVICE_ID2 0x0008
|
||||
|
||||
static struct pci_device_id kvaser_pci_tbl[] = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(kvaser_pci_tbl) = {
|
||||
{KVASER_PCI_VENDOR_ID1, KVASER_PCI_DEVICE_ID1, PCI_ANY_ID, PCI_ANY_ID,},
|
||||
{KVASER_PCI_VENDOR_ID2, KVASER_PCI_DEVICE_ID2, PCI_ANY_ID, PCI_ANY_ID,},
|
||||
{ 0,}
|
||||
|
Reference in New Issue
Block a user