aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-07-12 15:33:09 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-17 01:38:28 -0400
commit344dc8ede105d4f6c3e410dd36ee5349a04e3929 (patch)
tree8848d6c7fd0303930861b049d0cfa5635321c8a8
parentf4f7f4143cf7d6a31bc9797f00f765d0174603cb (diff)
drivers/net: 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> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/tun.c2
-rw-r--r--drivers/net/wimax/i2400m/driver.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index 987aeefbc774..961fad1f7053 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -22,7 +22,7 @@
22 * Add TUNSETLINK ioctl to set the link encapsulation 22 * Add TUNSETLINK ioctl to set the link encapsulation
23 * 23 *
24 * Mark Smith <markzzzsmith@yahoo.com.au> 24 * Mark Smith <markzzzsmith@yahoo.com.au>
25 * Use random_ether_addr() for tap MAC address. 25 * Use eth_random_addr() for tap MAC address.
26 * 26 *
27 * Harald Roelle <harald.roelle@ifi.lmu.de> 2004/04/20 27 * Harald Roelle <harald.roelle@ifi.lmu.de> 2004/04/20
28 * Fixes in packet dropping, queue length setting and queue wakeup. 28 * Fixes in packet dropping, queue length setting and queue wakeup.
diff --git a/drivers/net/wimax/i2400m/driver.c b/drivers/net/wimax/i2400m/driver.c
index 850b8bc38bee..025426132754 100644
--- a/drivers/net/wimax/i2400m/driver.c
+++ b/drivers/net/wimax/i2400m/driver.c
@@ -896,7 +896,7 @@ int i2400m_setup(struct i2400m *i2400m, enum i2400m_bri bm_flags)
896 result = i2400m_read_mac_addr(i2400m); 896 result = i2400m_read_mac_addr(i2400m);
897 if (result < 0) 897 if (result < 0)
898 goto error_read_mac_addr; 898 goto error_read_mac_addr;
899 random_ether_addr(i2400m->src_mac_addr); 899 eth_random_addr(i2400m->src_mac_addr);
900 900
901 i2400m->pm_notifier.notifier_call = i2400m_pm_notifier; 901 i2400m->pm_notifier.notifier_call = i2400m_pm_notifier;
902 register_pm_notifier(&i2400m->pm_notifier); 902 register_pm_notifier(&i2400m->pm_notifier);