Browse Source

Change Id to symbolic name for RTL8139

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Jin Zhengxiong 19 years ago
parent
commit
da012ab661
2 changed files with 4 additions and 1 deletions
  1. 1 1
      drivers/rtl8139.c
  2. 3 0
      include/pci_ids.h

+ 1 - 1
drivers/rtl8139.c

@@ -196,7 +196,7 @@ static void rtl_disable(struct eth_device *dev);
 
 
 static struct pci_device_id supported[] = {
 static struct pci_device_id supported[] = {
        {PCI_VENDOR_ID_REALTEK, PCI_DEVICE_ID_REALTEK_8139},
        {PCI_VENDOR_ID_REALTEK, PCI_DEVICE_ID_REALTEK_8139},
-       {0x1186, 0x1300},
+       {PCI_VENDOR_ID_DLINK, PCI_DEVICE_ID_DLINK_8139},
        {}
        {}
 };
 };
 
 

+ 3 - 0
include/pci_ids.h

@@ -1045,6 +1045,9 @@
 #define PCI_DEVICE_ID_REALTEK_8139	0x8139
 #define PCI_DEVICE_ID_REALTEK_8139	0x8139
 #define PCI_DEVICE_ID_REALTEK_8169	0x8169
 #define PCI_DEVICE_ID_REALTEK_8169	0x8169
 
 
+#define PCI_VENDOR_ID_DLINK		0x1186
+#define PCI_DEVICE_ID_DLINK_8139	0x1300
+
 #define PCI_VENDOR_ID_XILINX		0x10ee
 #define PCI_VENDOR_ID_XILINX		0x10ee
 #define PCI_DEVICE_ID_TURBOPAM		0x4020
 #define PCI_DEVICE_ID_TURBOPAM		0x4020