Skip to content

Commit 006c913

Browse files
JoePerchesdavem330
authored andcommitted
usb: Use eth_random_addr
Convert the existing uses of random_ether_addr to the new eth_random_addr. Signed-off-by: Joe Perches <[email protected]> Acked-by: Felipe Balbi <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1833611 commit 006c913

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/usb/atm/xusbatm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
******************************************************************************/
2121

2222
#include <linux/module.h>
23-
#include <linux/etherdevice.h> /* for random_ether_addr() */
23+
#include <linux/etherdevice.h> /* for eth_random_addr() */
2424

2525
#include "usbatm.h"
2626

@@ -163,7 +163,7 @@ static int xusbatm_atm_start(struct usbatm_data *usbatm,
163163
atm_dbg(usbatm, "%s entered\n", __func__);
164164

165165
/* use random MAC as we've no way to get it from the device */
166-
random_ether_addr(atm_dev->esi);
166+
eth_random_addr(atm_dev->esi);
167167

168168
return 0;
169169
}

drivers/usb/gadget/u_ether.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ static int get_ether_addr(const char *str, u8 *dev_addr)
724724
if (is_valid_ether_addr(dev_addr))
725725
return 0;
726726
}
727-
random_ether_addr(dev_addr);
727+
eth_random_addr(dev_addr);
728728
return 1;
729729
}
730730

0 commit comments

Comments
 (0)