Commit c7e12ead authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

net: usb: Use eth_random_addr

Convert the existing uses of random_ether_addr to
the new eth_random_addr.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7efd26d0
...@@ -616,7 +616,7 @@ static void smsc75xx_init_mac_address(struct usbnet *dev) ...@@ -616,7 +616,7 @@ static void smsc75xx_init_mac_address(struct usbnet *dev)
/* no eeprom, or eeprom values are invalid. generate random MAC */ /* no eeprom, or eeprom values are invalid. generate random MAC */
eth_hw_addr_random(dev->net); eth_hw_addr_random(dev->net);
netif_dbg(dev, ifup, dev->net, "MAC address set to random_ether_addr"); netif_dbg(dev, ifup, dev->net, "MAC address set to eth_random_addr");
} }
static int smsc75xx_set_mac_address(struct usbnet *dev) static int smsc75xx_set_mac_address(struct usbnet *dev)
......
...@@ -647,7 +647,7 @@ static void smsc95xx_init_mac_address(struct usbnet *dev) ...@@ -647,7 +647,7 @@ static void smsc95xx_init_mac_address(struct usbnet *dev)
/* no eeprom, or eeprom values are invalid. generate random MAC */ /* no eeprom, or eeprom values are invalid. generate random MAC */
eth_hw_addr_random(dev->net); eth_hw_addr_random(dev->net);
netif_dbg(dev, ifup, dev->net, "MAC address set to random_ether_addr\n"); netif_dbg(dev, ifup, dev->net, "MAC address set to eth_random_addr\n");
} }
static int smsc95xx_set_mac_address(struct usbnet *dev) static int smsc95xx_set_mac_address(struct usbnet *dev)
......
...@@ -1593,7 +1593,7 @@ static int __init usbnet_init(void) ...@@ -1593,7 +1593,7 @@ static int __init usbnet_init(void)
BUILD_BUG_ON( BUILD_BUG_ON(
FIELD_SIZEOF(struct sk_buff, cb) < sizeof(struct skb_data)); FIELD_SIZEOF(struct sk_buff, cb) < sizeof(struct skb_data));
random_ether_addr(node_id); eth_random_addr(node_id);
return 0; return 0;
} }
module_init(usbnet_init); module_init(usbnet_init);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment