[PATCH] net: use DECLARE_PCI_DEVICE_TABLE

From: Jonas Bonn
Date: Thu Mar 06 2008 - 05:56:58 EST


Makes struct pci_device_id array const and moves it to __devinitconst

Signed-off-by: Jonas Bonn <jonas@xxxxxxxxxxxx>
---
drivers/net/netxen/netxen_nic_main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c
index 9737eae..7eaff19 100644
--- a/drivers/net/netxen/netxen_nic_main.c
+++ b/drivers/net/netxen/netxen_nic_main.c
@@ -73,7 +73,7 @@ static irqreturn_t netxen_intr(int irq, void *data);
int physical_port[] = {0, 1, 2, 3};

/* PCI Device ID Table */
-static struct pci_device_id netxen_pci_tbl[] __devinitdata = {
+static DECLARE_PCI_DEVICE_TABLE(netxen_pci_tbl) = {
{PCI_DEVICE(0x4040, 0x0001)},
{PCI_DEVICE(0x4040, 0x0002)},
{PCI_DEVICE(0x4040, 0x0003)},
--
1.5.4.3


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/