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

Signed-off-by: Martin Strubel <hackfin@section5.ch>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
This commit is contained in:
Martin Strubel 2007-12-24 19:12:32 +08:00 committed by Bryan Wu
parent 8baf560b4c
commit 7285846ff8
1 changed files with 2 additions and 0 deletions

View File

@ -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