qlcnic: use DEFINE_PCI_DEVICE_TABLE
authorAmit Kumar Salecha <amit.salecha@qlogic.com>
Mon, 1 Feb 2010 05:24:54 +0000 (05:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Feb 2010 23:55:43 +0000 (15:55 -0800)
Use DEFINE_PCI_DEVICE_TABLE() so we get place PCI ids table into
correct section in every case.

Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlcnic/qlcnic_main.c

index 1698b6a68ed1a303eac75c950c15b0f42aa3acbf..05275f2153be6c25e1766306e59d4c69e31ff251 100644 (file)
@@ -102,7 +102,7 @@ static void qlcnic_config_indev_addr(struct net_device *dev, unsigned long);
 
 #define PCI_DEVICE_ID_QLOGIC_QLE824X  0x8020
 
-static const struct pci_device_id qlcnic_pci_tbl[] __devinitdata = {
+static DEFINE_PCI_DEVICE_TABLE(qlcnic_pci_tbl) = {
        ENTRY(PCI_DEVICE_ID_QLOGIC_QLE824X),
        {0,}
 };