Make PCI ID tables const so as not to trigger a warning about a large
authorMichael Brown <mcb30@etherboot.org>
Tue, 3 May 2005 12:36:06 +0000 (12:36 +0000)
committerMichael Brown <mcb30@etherboot.org>
Tue, 3 May 2005 12:36:06 +0000 (12:36 +0000)
symbol.

src/drivers/net/tlan.c
src/drivers/net/tulip.c

index 4ae6f96..3c773b6 100644 (file)
@@ -125,7 +125,7 @@ struct pci_id_info {
        u16 addrOfs;            /* Address Offset */
 };
 
-static struct pci_id_info tlan_pci_tbl[] = {
+static const struct pci_id_info tlan_pci_tbl[] = {
        {"Compaq Netelligent 10 T PCI UTP", NETEL10,
         {0xae340e11, 0xffffffff, 0, 0, 0, 0},
         TLAN_ADAPTER_ACTIVITY_LED, 0x83},
index d874aed..28e38d9 100644 (file)
@@ -180,7 +180,7 @@ struct pci_id_info {
     int drv_flags;                              /* Driver use, intended as capability flags. */
 };
 
-static struct pci_id_info pci_id_tbl[] = {
+static const struct pci_id_info pci_id_tbl[] = {
     { "Digital DC21040 Tulip", { 0x00021011, 0xffffffff, 0, 0, 0, 0 },
       TULIP_IOTYPE, 0x80, DC21040 },
     { "Digital DC21041 Tulip", { 0x00141011, 0xffffffff, 0, 0, 0, 0 },