diff options
author | Martin Strubel <hackfin@section5.ch> | 2007-12-24 06:12:32 -0500 |
---|---|---|
committer | Bryan Wu <bryan.wu@analog.com> | 2007-12-24 06:12:32 -0500 |
commit | 7285846ff8d09879cacac5c6d40fc8e8443c7cf0 (patch) | |
tree | 71912beac53cf999181eeba325151876742f0e8e /arch/blackfin/mach-bf537 | |
parent | 8baf560b4c901fb554d15e056aaa7f34b2345be5 (diff) |
[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>
Diffstat (limited to 'arch/blackfin/mach-bf537')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/generic_board.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf537/boards/generic_board.c b/arch/blackfin/mach-bf537/boards/generic_board.c index 09f4bfbd2350..7fd873f59242 100644 --- a/arch/blackfin/mach-bf537/boards/generic_board.c +++ b/arch/blackfin/mach-bf537/boards/generic_board.c | |||
@@ -733,9 +733,11 @@ void native_machine_restart(char *cmd) | |||
733 | bfin_gpio_reset_spi0_ssel1(); | 733 | bfin_gpio_reset_spi0_ssel1(); |
734 | } | 734 | } |
735 | 735 | ||
736 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) | ||
736 | void bfin_get_ether_addr(char *addr) | 737 | void bfin_get_ether_addr(char *addr) |
737 | { | 738 | { |
738 | random_ether_addr(addr); | 739 | random_ether_addr(addr); |
739 | printk(KERN_WARNING "%s:%s: Setting Ethernet MAC to a random one\n", __FILE__, __func__); | 740 | printk(KERN_WARNING "%s:%s: Setting Ethernet MAC to a random one\n", __FILE__, __func__); |
740 | } | 741 | } |
741 | EXPORT_SYMBOL(bfin_get_ether_addr); | 742 | EXPORT_SYMBOL(bfin_get_ether_addr); |
743 | #endif | ||