summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/sb1250-mac.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-11-16 09:38:03 +0000
committerDavid S. Miller <davem@davemloft.net>2011-11-16 20:23:17 -0500
commit104bf3fb963cbc39c6675b23d46d2c9ab3f311d8 (patch)
treec0f07ad8b1b299ce56e091f573fbfcab9959679d /drivers/net/ethernet/broadcom/sb1250-mac.c
parent6a3c910ca04ecd69b16dae47b26097a92c533828 (diff)
downloadop-kernel-dev-104bf3fb963cbc39c6675b23d46d2c9ab3f311d8.zip
op-kernel-dev-104bf3fb963cbc39c6675b23d46d2c9ab3f311d8.tar.gz
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/broadcom/sb1250-mac.c')
-rw-r--r--drivers/net/ethernet/broadcom/sb1250-mac.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/broadcom/sb1250-mac.c b/drivers/net/ethernet/broadcom/sb1250-mac.c
index 0a1d7f2..aa58f9e 100644
--- a/drivers/net/ethernet/broadcom/sb1250-mac.c
+++ b/drivers/net/ethernet/broadcom/sb1250-mac.c
@@ -163,7 +163,6 @@ enum sbmac_state {
#define SBMAC_MAX_TXDESCR 256
#define SBMAC_MAX_RXDESCR 256
-#define ETHER_ADDR_LEN 6
#define ENET_PACKET_SIZE 1518
/*#define ENET_PACKET_SIZE 9216 */
@@ -266,7 +265,7 @@ struct sbmac_softc {
int sbm_pause; /* current pause setting */
int sbm_link; /* current link state */
- unsigned char sbm_hwaddr[ETHER_ADDR_LEN];
+ unsigned char sbm_hwaddr[ETH_ALEN];
struct sbmacdma sbm_txdma; /* only channel 0 for now */
struct sbmacdma sbm_rxdma;
OpenPOWER on IntegriCloud