[PATCH] net: use DECLARE_PCI_DEVICE_TABLE

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


Makes struct pci_device_id array const and adds section attribute __devinitconst

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

diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c
index 0991648..542e0fa 100644
--- a/drivers/net/e1000/e1000_main.c
+++ b/drivers/net/e1000/e1000_main.c
@@ -53,7 +53,7 @@ static const char e1000_copyright[] = "Copyright (c) 1999-2006 Intel Corporation
#define PCIE(x) x,
#endif

-static struct pci_device_id e1000_pci_tbl[] = {
+static DECLARE_PCI_DEVICE_TABLE(e1000_pci_tbl) = {
INTEL_E1000_ETHERNET_DEVICE(0x1000),
INTEL_E1000_ETHERNET_DEVICE(0x1001),
INTEL_E1000_ETHERNET_DEVICE(0x1004),
--
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/