aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/sb1250-mac.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-11-16 04:38:03 -0500
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)
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 0a1d7f279fc8..aa58f9e3f913 100644
--- a/drivers/net/ethernet/broadcom/sb1250-mac.c
+++ b/drivers/net/ethernet/broadcom/sb1250-mac.c
@@ -163,7 +163,6 @@ enum sbmac_state {
163#define SBMAC_MAX_TXDESCR 256 163#define SBMAC_MAX_TXDESCR 256
164#define SBMAC_MAX_RXDESCR 256 164#define SBMAC_MAX_RXDESCR 256
165 165
166#define ETHER_ADDR_LEN 6
167#define ENET_PACKET_SIZE 1518 166#define ENET_PACKET_SIZE 1518
168/*#define ENET_PACKET_SIZE 9216 */ 167/*#define ENET_PACKET_SIZE 9216 */
169 168
@@ -266,7 +265,7 @@ struct sbmac_softc {
266 int sbm_pause; /* current pause setting */ 265 int sbm_pause; /* current pause setting */
267 int sbm_link; /* current link state */ 266 int sbm_link; /* current link state */
268 267
269 unsigned char sbm_hwaddr[ETHER_ADDR_LEN]; 268 unsigned char sbm_hwaddr[ETH_ALEN];
270 269
271 struct sbmacdma sbm_txdma; /* only channel 0 for now */ 270 struct sbmacdma sbm_txdma; /* only channel 0 for now */
272 struct sbmacdma sbm_rxdma; 271 struct sbmacdma sbm_rxdma;