Commit 80db345e authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller

smc9194: use eth_hw_addr_set()

dev_addr is set from IO reads, and broken from a u16 value.

Fixes build on Alpha.
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f95f8e89
...@@ -856,6 +856,7 @@ static int __init smc_probe(struct net_device *dev, int ioaddr) ...@@ -856,6 +856,7 @@ static int __init smc_probe(struct net_device *dev, int ioaddr)
word configuration_register; word configuration_register;
word memory_info_register; word memory_info_register;
word memory_cfg_register; word memory_cfg_register;
u8 addr[ETH_ALEN];
/* Grab the region so that no one else tries to probe our ioports. */ /* Grab the region so that no one else tries to probe our ioports. */
if (!request_region(ioaddr, SMC_IO_EXTENT, DRV_NAME)) if (!request_region(ioaddr, SMC_IO_EXTENT, DRV_NAME))
...@@ -924,9 +925,10 @@ static int __init smc_probe(struct net_device *dev, int ioaddr) ...@@ -924,9 +925,10 @@ static int __init smc_probe(struct net_device *dev, int ioaddr)
word address; word address;
address = inw( ioaddr + ADDR0 + i ); address = inw( ioaddr + ADDR0 + i );
dev->dev_addr[ i + 1] = address >> 8; addr[i + 1] = address >> 8;
dev->dev_addr[ i ] = address & 0xFF; addr[i] = address & 0xFF;
} }
eth_hw_addr_set(dev, addr);
/* get the memory information */ /* get the memory information */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment