aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb
diff options
context:
space:
mode:
authorDanny Kukawka <danny.kukawka@bisect.de>2012-02-15 01:45:39 -0500
committerDavid S. Miller <davem@davemloft.net>2012-02-15 15:34:16 -0500
commitf2cedb63df14342ad40a8b5b324fc5d94a60b665 (patch)
treebebdbe0f98c216e59849bc3adb85f8abf5aadc2b /drivers/net/usb
parenta1e785e02bb53573443c7e58a444cef1a049f6ce (diff)
net: replace random_ether_addr() with eth_hw_addr_random()
Replace usage of random_ether_addr() with eth_hw_addr_random() to set addr_assign_type correctly to NET_ADDR_RANDOM. Change the trivial cases. v2: adapt to renamed eth_hw_addr_random() Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r--drivers/net/usb/smsc75xx.c2
-rw-r--r--drivers/net/usb/smsc95xx.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/usb/smsc75xx.c b/drivers/net/usb/smsc75xx.c
index 3b017bbd2a22..187d01ccb973 100644
--- a/drivers/net/usb/smsc75xx.c
+++ b/drivers/net/usb/smsc75xx.c
@@ -615,7 +615,7 @@ static void smsc75xx_init_mac_address(struct usbnet *dev)
615 } 615 }
616 616
617 /* no eeprom, or eeprom values are invalid. generate random MAC */ 617 /* no eeprom, or eeprom values are invalid. generate random MAC */
618 random_ether_addr(dev->net->dev_addr); 618 eth_hw_addr_random(dev->net);
619 netif_dbg(dev, ifup, dev->net, "MAC address set to random_ether_addr"); 619 netif_dbg(dev, ifup, dev->net, "MAC address set to random_ether_addr");
620} 620}
621 621
diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c
index d45520e6dd48..5f19f84d3494 100644
--- a/drivers/net/usb/smsc95xx.c
+++ b/drivers/net/usb/smsc95xx.c
@@ -614,7 +614,7 @@ static void smsc95xx_init_mac_address(struct usbnet *dev)
614 } 614 }
615 615
616 /* no eeprom, or eeprom values are invalid. generate random MAC */ 616 /* no eeprom, or eeprom values are invalid. generate random MAC */
617 random_ether_addr(dev->net->dev_addr); 617 eth_hw_addr_random(dev->net);
618 netif_dbg(dev, ifup, dev->net, "MAC address set to random_ether_addr\n"); 618 netif_dbg(dev, ifup, dev->net, "MAC address set to random_ether_addr\n");
619} 619}
620 620