tilegx net: use eth_hw_addr_random(), not eth_random_addr()
authorChris Metcalf <cmetcalf@tilera.com>
Wed, 18 Jul 2012 16:23:06 +0000 (12:23 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Wed, 18 Jul 2012 19:07:45 +0000 (15:07 -0400)
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
drivers/net/ethernet/tile/tilegx.c

index ac4a904344f01ab90be087bb1c5f21796b6f67ff..4e2a1628484dfbc3a6fff901d976cf751bf8c151 100644 (file)
@@ -1851,7 +1851,7 @@ static void tile_net_dev_init(const char *name, const uint8_t *mac)
                memcpy(dev->dev_addr, mac, 6);
                dev->addr_len = 6;
        } else {
-               eth_random_addr(dev->dev_addr);
+               eth_hw_addr_random(dev);
        }
 
        /* Register the network device. */