aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/blackfin/mach-bf537/boards/stamp.c2
-rw-r--r--arch/c6x/kernel/soc.c2
-rw-r--r--arch/mips/ar7/platform.c4
-rw-r--r--arch/mips/powertv/powertv_setup.c6
-rw-r--r--arch/um/drivers/net_kern.c2
5 files changed, 8 insertions, 8 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c
index c9d9473a5ab2..5ed654ae66e1 100644
--- a/arch/blackfin/mach-bf537/boards/stamp.c
+++ b/arch/blackfin/mach-bf537/boards/stamp.c
@@ -873,7 +873,7 @@ static struct adf702x_platform_data adf7021_platform_data = {
873}; 873};
874static inline void adf702x_mac_init(void) 874static inline void adf702x_mac_init(void)
875{ 875{
876 random_ether_addr(adf7021_platform_data.mac_addr); 876 eth_random_addr(adf7021_platform_data.mac_addr);
877} 877}
878#else 878#else
879static inline void adf702x_mac_init(void) {} 879static inline void adf702x_mac_init(void) {}
diff --git a/arch/c6x/kernel/soc.c b/arch/c6x/kernel/soc.c
index 0748c94ebef6..3ac74080fded 100644
--- a/arch/c6x/kernel/soc.c
+++ b/arch/c6x/kernel/soc.c
@@ -80,7 +80,7 @@ int soc_mac_addr(unsigned int index, u8 *addr)
80 if (have_fuse_mac) 80 if (have_fuse_mac)
81 memcpy(addr, c6x_fuse_mac, 6); 81 memcpy(addr, c6x_fuse_mac, 6);
82 else 82 else
83 random_ether_addr(addr); 83 eth_random_addr(addr);
84 } 84 }
85 85
86 /* adjust for specific EMAC device */ 86 /* adjust for specific EMAC device */
diff --git a/arch/mips/ar7/platform.c b/arch/mips/ar7/platform.c
index 1a24d317e7a3..1bbc24b08685 100644
--- a/arch/mips/ar7/platform.c
+++ b/arch/mips/ar7/platform.c
@@ -310,10 +310,10 @@ static void __init cpmac_get_mac(int instance, unsigned char *dev_addr)
310 &dev_addr[4], &dev_addr[5]) != 6) { 310 &dev_addr[4], &dev_addr[5]) != 6) {
311 pr_warning("cannot parse mac address, " 311 pr_warning("cannot parse mac address, "
312 "using random address\n"); 312 "using random address\n");
313 random_ether_addr(dev_addr); 313 eth_random_addr(dev_addr);
314 } 314 }
315 } else 315 } else
316 random_ether_addr(dev_addr); 316 eth_random_addr(dev_addr);
317} 317}
318 318
319/***************************************************************************** 319/*****************************************************************************
diff --git a/arch/mips/powertv/powertv_setup.c b/arch/mips/powertv/powertv_setup.c
index 3933c373a438..820b8480f222 100644
--- a/arch/mips/powertv/powertv_setup.c
+++ b/arch/mips/powertv/powertv_setup.c
@@ -254,7 +254,7 @@ early_param("rfmac", rfmac_param);
254 * Generates an Ethernet MAC address that is highly likely to be unique for 254 * Generates an Ethernet MAC address that is highly likely to be unique for
255 * this particular system on a network with other systems of the same type. 255 * this particular system on a network with other systems of the same type.
256 * 256 *
257 * The problem we are solving is that, when random_ether_addr() is used to 257 * The problem we are solving is that, when eth_random_addr() is used to
258 * generate MAC addresses at startup, there isn't much entropy for the random 258 * generate MAC addresses at startup, there isn't much entropy for the random
259 * number generator to use and the addresses it produces are fairly likely to 259 * number generator to use and the addresses it produces are fairly likely to
260 * be the same as those of other identical systems on the same local network. 260 * be the same as those of other identical systems on the same local network.
@@ -269,7 +269,7 @@ early_param("rfmac", rfmac_param);
269 * Still, this does give us something to work with. 269 * Still, this does give us something to work with.
270 * 270 *
271 * The approach we take is: 271 * The approach we take is:
272 * 1. If we can't get the RF MAC Address, just call random_ether_addr. 272 * 1. If we can't get the RF MAC Address, just call eth_random_addr.
273 * 2. Use the 24-bit NIC-specific bits of the RF MAC address as the last 24 273 * 2. Use the 24-bit NIC-specific bits of the RF MAC address as the last 24
274 * bits of the new address. This is very likely to be unique, except for 274 * bits of the new address. This is very likely to be unique, except for
275 * the current box. 275 * the current box.
@@ -299,7 +299,7 @@ void platform_random_ether_addr(u8 addr[ETH_ALEN])
299 if (!have_rfmac) { 299 if (!have_rfmac) {
300 pr_warning("rfmac not available on command line; " 300 pr_warning("rfmac not available on command line; "
301 "generating random MAC address\n"); 301 "generating random MAC address\n");
302 random_ether_addr(addr); 302 eth_random_addr(addr);
303 } 303 }
304 304
305 else { 305 else {
diff --git a/arch/um/drivers/net_kern.c b/arch/um/drivers/net_kern.c
index 0d60c5685c26..458d324f062d 100644
--- a/arch/um/drivers/net_kern.c
+++ b/arch/um/drivers/net_kern.c
@@ -339,7 +339,7 @@ static int setup_etheraddr(char *str, unsigned char *addr, char *name)
339random: 339random:
340 printk(KERN_INFO 340 printk(KERN_INFO
341 "Choosing a random ethernet address for device %s\n", name); 341 "Choosing a random ethernet address for device %s\n", name);
342 random_ether_addr(addr); 342 eth_random_addr(addr);
343 return 1; 343 return 1;
344} 344}
345 345