mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
MIPS: ath25: Convert random_ether_addr to eth_random_addr
random_ether_addr is a #define for eth_random_addr which is generally preferred in kernel code by ~3:1 Convert the uses of random_ether_addr to enable removing the #define Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Paul Burton <paul.burton@mips.com> Patchwork: https://patchwork.linux-mips.org/patch/19600/ Cc: Ralf Baechle <ralf@linux-mips.org> Cc: James Hogan <jhogan@kernel.org> Cc: linux-mips@linux-mips.org
This commit is contained in:
parent
97c8580e85
commit
8e5c88bfbb
1 changed files with 3 additions and 3 deletions
|
@ -146,10 +146,10 @@ int __init ath25_find_config(phys_addr_t base, unsigned long size)
|
|||
pr_info("Fixing up empty mac addresses\n");
|
||||
config->reset_config_gpio = 0xffff;
|
||||
config->sys_led_gpio = 0xffff;
|
||||
random_ether_addr(config->wlan0_mac);
|
||||
eth_random_addr(config->wlan0_mac);
|
||||
config->wlan0_mac[0] &= ~0x06;
|
||||
random_ether_addr(config->enet0_mac);
|
||||
random_ether_addr(config->enet1_mac);
|
||||
eth_random_addr(config->enet0_mac);
|
||||
eth_random_addr(config->enet1_mac);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue