diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2015-05-04 14:55:15 -0500 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2015-05-20 11:07:27 -0500 |
commit | 76ec988b062ed880ab23d0e0d4e9e6c137b55cc3 (patch) | |
tree | 9f97bb7d62c2c8114f688c512e6169f105db1fba /drivers/net | |
parent | 92ac520821405e196c920d60921bdfa5ab6b878c (diff) | |
download | u-boot-imx-76ec988b062ed880ab23d0e0d4e9e6c137b55cc3.zip u-boot-imx-76ec988b062ed880ab23d0e0d4e9e6c137b55cc3.tar.gz u-boot-imx-76ec988b062ed880ab23d0e0d4e9e6c137b55cc3.tar.bz2 |
net: Remove all calls to net_random_ethaddr()
Remove the calls to net_random_ethaddr() that some boards and some
drivers are calling. This is now implemented inside of net/eth.c
Enable the feature for all boards that previously enabled it.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Acked-By: Michael Walle <michael@walle.cc> (for the lsxl board part)
Series-changes: 2
-Fixed bfin build errors
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/dm9000x.c | 6 | ||||
-rw-r--r-- | drivers/net/ftmac110.c | 3 |
2 files changed, 0 insertions, 9 deletions
diff --git a/drivers/net/dm9000x.c b/drivers/net/dm9000x.c index ccd2131..3c41cec 100644 --- a/drivers/net/dm9000x.c +++ b/drivers/net/dm9000x.c @@ -343,13 +343,7 @@ static int dm9000_init(struct eth_device *dev, bd_t *bd) printf("MAC: %pM\n", dev->enetaddr); if (!is_valid_ethaddr(dev->enetaddr)) { -#ifdef CONFIG_RANDOM_MACADDR - printf("Bad MAC address (uninitialized EEPROM?), randomizing\n"); - net_random_ethaddr(dev->enetaddr); - printf("MAC: %pM\n", dev->enetaddr); -#else printf("WARNING: Bad MAC address (uninitialized EEPROM?)\n"); -#endif } /* fill device MAC address registers */ diff --git a/drivers/net/ftmac110.c b/drivers/net/ftmac110.c index 4bae9ad..4f17015 100644 --- a/drivers/net/ftmac110.c +++ b/drivers/net/ftmac110.c @@ -424,9 +424,6 @@ int ftmac110_initialize(bd_t *bis) dev->send = ftmac110_send; dev->recv = ftmac110_recv; - if (!eth_getenv_enetaddr_by_index("eth", card_nr, dev->enetaddr)) - net_random_ethaddr(dev->enetaddr); - /* allocate tx descriptors (it must be 16 bytes aligned) */ chip->txd = dma_alloc_coherent( sizeof(struct ftmac110_desc) * CFG_TXDES_NUM, &chip->txd_dma); |