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

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>
Acked-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1833611d
......@@ -20,7 +20,7 @@
******************************************************************************/
#include <linux/module.h>
#include <linux/etherdevice.h> /* for random_ether_addr() */
#include <linux/etherdevice.h> /* for eth_random_addr() */
#include "usbatm.h"
......@@ -163,7 +163,7 @@ static int xusbatm_atm_start(struct usbatm_data *usbatm,
atm_dbg(usbatm, "%s entered\n", __func__);
/* use random MAC as we've no way to get it from the device */
random_ether_addr(atm_dev->esi);
eth_random_addr(atm_dev->esi);
return 0;
}
......
......@@ -724,7 +724,7 @@ static int get_ether_addr(const char *str, u8 *dev_addr)
if (is_valid_ether_addr(dev_addr))
return 0;
}
random_ether_addr(dev_addr);
eth_random_addr(dev_addr);
return 1;
}
......
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