diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2015-05-04 19:55:15 (GMT) |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2015-05-20 16:07:27 (GMT) |
commit | 76ec988b062ed880ab23d0e0d4e9e6c137b55cc3 (patch) | |
tree | 9f97bb7d62c2c8114f688c512e6169f105db1fba /drivers/net/dm9000x.c | |
parent | 92ac520821405e196c920d60921bdfa5ab6b878c (diff) | |
download | u-boot-fsl-qoriq-76ec988b062ed880ab23d0e0d4e9e6c137b55cc3.tar.xz |
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/dm9000x.c')
-rw-r--r-- | drivers/net/dm9000x.c | 6 |
1 files changed, 0 insertions, 6 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 */ |