Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Joe Perches and committed by
Paul Burton
8e5c88bf 97c8580e

+3 -3
+3 -3
arch/mips/ath25/board.c
··· 146 146 pr_info("Fixing up empty mac addresses\n"); 147 147 config->reset_config_gpio = 0xffff; 148 148 config->sys_led_gpio = 0xffff; 149 - random_ether_addr(config->wlan0_mac); 149 + eth_random_addr(config->wlan0_mac); 150 150 config->wlan0_mac[0] &= ~0x06; 151 - random_ether_addr(config->enet0_mac); 152 - random_ether_addr(config->enet1_mac); 151 + eth_random_addr(config->enet0_mac); 152 + eth_random_addr(config->enet1_mac); 153 153 } 154 154 } 155 155