提交 7285846f 编写于 作者: M Martin Strubel 提交者: Bryan Wu

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

Signed-off-by: NMartin Strubel <hackfin@section5.ch>
Signed-off-by: NBryan Wu <bryan.wu@analog.com>
上级 8baf560b
......@@ -733,9 +733,11 @@ void native_machine_restart(char *cmd)
bfin_gpio_reset_spi0_ssel1();
}
#if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
void bfin_get_ether_addr(char *addr)
{
random_ether_addr(addr);
printk(KERN_WARNING "%s:%s: Setting Ethernet MAC to a random one\n", __FILE__, __func__);
}
EXPORT_SYMBOL(bfin_get_ether_addr);
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册