diff options
author | Joe Perches <joe@perches.com> | 2012-07-13 01:33:11 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-17 01:39:07 -0400 |
commit | 006c9139f7a90d3419381a59ac76f42612f94c14 (patch) | |
tree | cf468ccb609bc780f937b6fdcc18867ee5054aa3 /drivers | |
parent | 1833611d4efe4b99bb346aec40b827410a4de2e5 (diff) |
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>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/atm/xusbatm.c | 4 | ||||
-rw-r--r-- | drivers/usb/gadget/u_ether.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/atm/xusbatm.c b/drivers/usb/atm/xusbatm.c index 14ec9f0c5924..b3b1bb78b2ef 100644 --- a/drivers/usb/atm/xusbatm.c +++ b/drivers/usb/atm/xusbatm.c | |||
@@ -20,7 +20,7 @@ | |||
20 | ******************************************************************************/ | 20 | ******************************************************************************/ |
21 | 21 | ||
22 | #include <linux/module.h> | 22 | #include <linux/module.h> |
23 | #include <linux/etherdevice.h> /* for random_ether_addr() */ | 23 | #include <linux/etherdevice.h> /* for eth_random_addr() */ |
24 | 24 | ||
25 | #include "usbatm.h" | 25 | #include "usbatm.h" |
26 | 26 | ||
@@ -163,7 +163,7 @@ static int xusbatm_atm_start(struct usbatm_data *usbatm, | |||
163 | atm_dbg(usbatm, "%s entered\n", __func__); | 163 | atm_dbg(usbatm, "%s entered\n", __func__); |
164 | 164 | ||
165 | /* use random MAC as we've no way to get it from the device */ | 165 | /* 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); |
167 | 167 | ||
168 | return 0; | 168 | return 0; |
169 | } | 169 | } |
diff --git a/drivers/usb/gadget/u_ether.c b/drivers/usb/gadget/u_ether.c index 47cf48b51c9d..b9e1925b2df0 100644 --- a/drivers/usb/gadget/u_ether.c +++ b/drivers/usb/gadget/u_ether.c | |||
@@ -724,7 +724,7 @@ static int get_ether_addr(const char *str, u8 *dev_addr) | |||
724 | if (is_valid_ether_addr(dev_addr)) | 724 | if (is_valid_ether_addr(dev_addr)) |
725 | return 0; | 725 | return 0; |
726 | } | 726 | } |
727 | random_ether_addr(dev_addr); | 727 | eth_random_addr(dev_addr); |
728 | return 1; | 728 | return 1; |
729 | } | 729 | } |
730 | 730 | ||