summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/8390/stnic.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/8390/stnic.c')
-rw-r--r--drivers/net/ethernet/8390/stnic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/8390/stnic.c b/drivers/net/ethernet/8390/stnic.c
index d85f0a84bc7b..3b903759980a 100644
--- a/drivers/net/ethernet/8390/stnic.c
+++ b/drivers/net/ethernet/8390/stnic.c
@@ -114,7 +114,7 @@ static int __init stnic_probe(void)
#ifdef CONFIG_SH_STANDARD_BIOS
sh_bios_get_node_addr (stnic_eadr);
#endif
- for (i = 0; i < ETHER_ADDR_LEN; i++)
+ for (i = 0; i < ETH_ALEN; i++)
dev->dev_addr[i] = stnic_eadr[i];
/* Set the base address to point to the NIC, not the "real" base! */
OpenPOWER on IntegriCloud