aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-07-12 15:33:07 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-17 01:38:28 -0400
commitc7e12ead5f92413234b3d9f4f35ae56734decd21 (patch)
tree19cb3338bbf650aedb05ccfa85992faefc5f46b1 /drivers/net/usb
parent7efd26d0db5917b9e53d72e76e52338b2600ae20 (diff)
net: usb: Use eth_random_addr
Convert the existing uses of random_ether_addr to the new eth_random_addr. Signed-off-by: Joe Perches <joe@perches.com> 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
-rw-r--r--drivers/net/usb/usbnet.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/usb/smsc75xx.c b/drivers/net/usb/smsc75xx.c
index 1c6e51588da7..6c0c5b76fc41 100644
--- a/drivers/net/usb/smsc75xx.c
+++ b/drivers/net/usb/smsc75xx.c
@@ -616,7 +616,7 @@ static void smsc75xx_init_mac_address(struct usbnet *dev)
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 eth_hw_addr_random(dev->net); 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 eth_random_addr");
620} 620}
621 621
622static int smsc75xx_set_mac_address(struct usbnet *dev) 622static int smsc75xx_set_mac_address(struct usbnet *dev)
diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c
index bd7cbaa688e4..25cc3a15a4ea 100644
--- a/drivers/net/usb/smsc95xx.c
+++ b/drivers/net/usb/smsc95xx.c
@@ -647,7 +647,7 @@ static void smsc95xx_init_mac_address(struct usbnet *dev)
647 647
648 /* no eeprom, or eeprom values are invalid. generate random MAC */ 648 /* no eeprom, or eeprom values are invalid. generate random MAC */
649 eth_hw_addr_random(dev->net); 649 eth_hw_addr_random(dev->net);
650 netif_dbg(dev, ifup, dev->net, "MAC address set to random_ether_addr\n"); 650 netif_dbg(dev, ifup, dev->net, "MAC address set to eth_random_addr\n");
651} 651}
652 652
653static int smsc95xx_set_mac_address(struct usbnet *dev) 653static int smsc95xx_set_mac_address(struct usbnet *dev)
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c
index e92c057f794a..8531c1caac28 100644
--- a/drivers/net/usb/usbnet.c
+++ b/drivers/net/usb/usbnet.c
@@ -1593,7 +1593,7 @@ static int __init usbnet_init(void)
1593 BUILD_BUG_ON( 1593 BUILD_BUG_ON(
1594 FIELD_SIZEOF(struct sk_buff, cb) < sizeof(struct skb_data)); 1594 FIELD_SIZEOF(struct sk_buff, cb) < sizeof(struct skb_data));
1595 1595
1596 random_ether_addr(node_id); 1596 eth_random_addr(node_id);
1597 return 0; 1597 return 0;
1598} 1598}
1599module_init(usbnet_init); 1599module_init(usbnet_init);