diff options
author | Joe Perches <joe@perches.com> | 2011-11-16 04:38:03 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-16 20:23:17 -0500 |
commit | 104bf3fb963cbc39c6675b23d46d2c9ab3f311d8 (patch) | |
tree | c0f07ad8b1b299ce56e091f573fbfcab9959679d /drivers/net/ethernet/8390/ne.c | |
parent | 6a3c910ca04ecd69b16dae47b26097a92c533828 (diff) |
ethernet: Convert ETHER_ADDR_LEN uses to ETH_ALEN
Reduce the number of #defines, use the normal #define from if_ether.h
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/8390/ne.c')
-rw-r--r-- | drivers/net/ethernet/8390/ne.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/8390/ne.c b/drivers/net/ethernet/8390/ne.c index 1063093b3afc..f92ea2a65a57 100644 --- a/drivers/net/ethernet/8390/ne.c +++ b/drivers/net/ethernet/8390/ne.c | |||
@@ -503,12 +503,12 @@ static int __init ne_probe1(struct net_device *dev, unsigned long ioaddr) | |||
503 | #ifdef CONFIG_PLAT_MAPPI | 503 | #ifdef CONFIG_PLAT_MAPPI |
504 | outb_p(E8390_NODMA + E8390_PAGE1 + E8390_STOP, | 504 | outb_p(E8390_NODMA + E8390_PAGE1 + E8390_STOP, |
505 | ioaddr + E8390_CMD); /* 0x61 */ | 505 | ioaddr + E8390_CMD); /* 0x61 */ |
506 | for (i = 0 ; i < ETHER_ADDR_LEN ; i++) { | 506 | for (i = 0; i < ETH_ALEN; i++) { |
507 | dev->dev_addr[i] = SA_prom[i] | 507 | dev->dev_addr[i] = SA_prom[i] |
508 | = inb_p(ioaddr + EN1_PHYS_SHIFT(i)); | 508 | = inb_p(ioaddr + EN1_PHYS_SHIFT(i)); |
509 | } | 509 | } |
510 | #else | 510 | #else |
511 | for(i = 0; i < ETHER_ADDR_LEN; i++) { | 511 | for (i = 0; i < ETH_ALEN; i++) { |
512 | dev->dev_addr[i] = SA_prom[i]; | 512 | dev->dev_addr[i] = SA_prom[i]; |
513 | } | 513 | } |
514 | #endif | 514 | #endif |