From: Francois Romieu Date: Thu, 18 Jan 2007 22:22:23 +0000 (+0100) Subject: sis190: failure to set the MAC address from EEPROM X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7939aae0c08412138a827e0af6f16fc19c346353;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git sis190: failure to set the MAC address from EEPROM Fix from http://bugzilla.kernel.org/show_bug.cgi?id=7747 Signed-off-by: Andrew Morton Cc: Signed-off-by: Francois Romieu Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/sis190.c b/drivers/net/sis190.c index b70ed79d4121..45d91b159100 100644 --- a/drivers/net/sis190.c +++ b/drivers/net/sis190.c @@ -1562,7 +1562,7 @@ static int __devinit sis190_get_mac_addr_from_eeprom(struct pci_dev *pdev, for (i = 0; i < MAC_ADDR_LEN / 2; i++) { __le16 w = sis190_read_eeprom(ioaddr, EEPROMMACAddr + i); - ((u16 *)dev->dev_addr)[0] = le16_to_cpu(w); + ((u16 *)dev->dev_addr)[i] = le16_to_cpu(w); } sis190_set_rgmii(tp, sis190_read_eeprom(ioaddr, EEPROMInfo));