[PATCH 2/7] cris/eth_v10: use dev_set_mac_address() instead of e100_set_mac_address()

From: Danny Kukawka
Date: Thu Mar 01 2012 - 11:54:42 EST


Use dev_set_mac_address() instead of e100_set_mac_address() directly
to get validation checks for free.

Signed-off-by: Danny Kukawka <danny.kukawka@xxxxxxxxx>
Acked-by: Jesper Nilsson <jesper.nilsson@xxxxxxxx>
---
drivers/net/cris/eth_v10.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/net/cris/eth_v10.c b/drivers/net/cris/eth_v10.c
index 7cb2785..ce6f3e6 100644
--- a/drivers/net/cris/eth_v10.c
+++ b/drivers/net/cris/eth_v10.c
@@ -377,8 +377,7 @@ etrax_ethernet_init(void)
}

/* set the default MAC address */
-
- e100_set_mac_address(dev, &default_mac);
+ dev_set_mac_address(dev, &default_mac);

/* Initialize speed indicator stuff. */

--
1.7.8.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/