Commit 7285846f authored by Martin Strubel's avatar Martin Strubel Committed by Bryan Wu

[Blackfin] arch: disable bfin_get_ether_addr fucntion for boards when do not use MAC driver

Signed-off-by: default avatarMartin Strubel <hackfin@section5.ch>
Signed-off-by: default avatarBryan Wu <bryan.wu@analog.com>
parent 8baf560b
...@@ -733,9 +733,11 @@ void native_machine_restart(char *cmd) ...@@ -733,9 +733,11 @@ void native_machine_restart(char *cmd)
bfin_gpio_reset_spi0_ssel1(); bfin_gpio_reset_spi0_ssel1();
} }
#if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
void bfin_get_ether_addr(char *addr) void bfin_get_ether_addr(char *addr)
{ {
random_ether_addr(addr); random_ether_addr(addr);
printk(KERN_WARNING "%s:%s: Setting Ethernet MAC to a random one\n", __FILE__, __func__); printk(KERN_WARNING "%s:%s: Setting Ethernet MAC to a random one\n", __FILE__, __func__);
} }
EXPORT_SYMBOL(bfin_get_ether_addr); EXPORT_SYMBOL(bfin_get_ether_addr);
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment