diff options
Diffstat (limited to 'drivers/net/tulip/winbond-840.c')
-rw-r--r-- | drivers/net/tulip/winbond-840.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tulip/winbond-840.c b/drivers/net/tulip/winbond-840.c index 3c40dd6e1a2f..3c8e3b63be07 100644 --- a/drivers/net/tulip/winbond-840.c +++ b/drivers/net/tulip/winbond-840.c | |||
@@ -381,7 +381,7 @@ static int __devinit w840_probe1 (struct pci_dev *pdev, | |||
381 | goto err_out_free_res; | 381 | goto err_out_free_res; |
382 | 382 | ||
383 | for (i = 0; i < 3; i++) | 383 | for (i = 0; i < 3; i++) |
384 | ((u16 *)dev->dev_addr)[i] = le16_to_cpu(eeprom_read(ioaddr, i)); | 384 | ((__le16 *)dev->dev_addr)[i] = cpu_to_le16(eeprom_read(ioaddr, i)); |
385 | 385 | ||
386 | /* Reset the chip to erase previous misconfiguration. | 386 | /* Reset the chip to erase previous misconfiguration. |
387 | No hold time required! */ | 387 | No hold time required! */ |