Skip to content

Commit

Permalink
usb: Use eth_random_addr
Browse files Browse the repository at this point in the history
Convert the existing uses of random_ether_addr to
the new eth_random_addr.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Joe Perches authored and David S. Miller committed Jul 17, 2012
1 parent 1833611 commit 006c913
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/atm/xusbatm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/gadget/u_ether.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 006c913

Please sign in to comment.