Merge branch 'mpc86xx'
[platform/kernel/u-boot.git] / drivers / rtl8139.c
index b9e4a8d..afe1a4f 100644 (file)
@@ -196,6 +196,7 @@ static void rtl_disable(struct eth_device *dev);
 
 static struct pci_device_id supported[] = {
        {PCI_VENDOR_ID_REALTEK, PCI_DEVICE_ID_REALTEK_8139},
+       {PCI_VENDOR_ID_DLINK, PCI_DEVICE_ID_DLINK_8139},
        {}
 };
 
@@ -254,7 +255,7 @@ static int rtl8139_probe(struct eth_device *dev, bd_t *bis)
 
        addr_len = read_eeprom(0,8) == 0x8129 ? 8 : 6;
        for (i = 0; i < 3; i++)
-               *ap++ = read_eeprom(i + 7, addr_len);
+               *ap++ = le16_to_cpu (read_eeprom(i + 7, addr_len));
 
        speed10 = inb(ioaddr + MediaStatus) & MSRSpeed10;
        fullduplex = inw(ioaddr + MII_BMCR) & BMCRDuplex;