diff options
author | Danny Kukawka <danny.kukawka@bisect.de> | 2012-02-16 07:09:31 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-19 19:03:04 -0500 |
commit | 5055d2f236e1495d68c468eeb684fd5789673f1d (patch) | |
tree | 603d6ce83fc899461ab1e7862c9e2ad94ef73023 /drivers/net/ethernet/adi/bfin_mac.h | |
parent | fa63c6da22b4a6ea6e7d04e3dc9178dd72304903 (diff) |
adi: adapt to eth_hw_addr_random() and changes in arch/blackfin
Adapt adi ethernet driver to changes in bfin_get_ether_addr()
from arch/blackfin. bfin_get_ether_addr() returns now a state.
Set a random mac address via new eth_hw_addr_random() in case
the return value is not 0.
Reset the state to NET_ADDR_PERM as soon as the MAC get
changed via .ndo_set_mac_address.
v2: change the logic to reduce unneeded checks
Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/adi/bfin_mac.h')
-rw-r--r-- | drivers/net/ethernet/adi/bfin_mac.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/adi/bfin_mac.h b/drivers/net/ethernet/adi/bfin_mac.h index f8559ac9a403..960905c08223 100644 --- a/drivers/net/ethernet/adi/bfin_mac.h +++ b/drivers/net/ethernet/adi/bfin_mac.h @@ -101,6 +101,6 @@ struct bfin_mac_local { #endif }; -extern void bfin_get_ether_addr(char *addr); +extern int bfin_get_ether_addr(char *addr); #endif |