aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorFrancois Romieu <romieu@fr.zoreil.com>2007-02-26 23:45:11 +0100
committerAdrian Bunk <bunk@stusta.de>2007-02-26 23:45:11 +0100
commit1c892f5e7740143c803e6cbc5b3a32429f0119cc (patch)
treee8cf4b33b72c7d421f8a6784fd06dde216ff3d65 /drivers
parent5130f8627a8215f7b3ab830c42d4bb3910ff4385 (diff)
sis190: failure to set the MAC address from EEPROM
Fix from http://bugzilla.kernel.org/show_bug.cgi?id=7747 Signed-off-by: Francois Romieu <romieu@fr.zoreil.com> Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/sis190.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sis190.c b/drivers/net/sis190.c
index ed4bc91638d..19294b7714b 100644
--- a/drivers/net/sis190.c
+++ b/drivers/net/sis190.c
@@ -1563,7 +1563,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));