ftgmac100.c (7483948fdd31a8642ef0288aab6f368b98d53c29) | ftgmac100.c (f2cedb63df14342ad40a8b5b324fc5d94a60b665) |
---|---|
1/* 2 * Faraday FTGMAC100 Gigabit Ethernet 3 * 4 * (C) Copyright 2009-2011 Faraday Technology 5 * Po-Yu Chuang <ratbert@faraday-tech.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 1275 unchanged lines hidden (view full) --- 1284 if (err) { 1285 dev_err(&pdev->dev, "Failed to register netdev\n"); 1286 goto err_register_netdev; 1287 } 1288 1289 netdev_info(netdev, "irq %d, mapped at %p\n", priv->irq, priv->base); 1290 1291 if (!is_valid_ether_addr(netdev->dev_addr)) { | 1/* 2 * Faraday FTGMAC100 Gigabit Ethernet 3 * 4 * (C) Copyright 2009-2011 Faraday Technology 5 * Po-Yu Chuang <ratbert@faraday-tech.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 1275 unchanged lines hidden (view full) --- 1284 if (err) { 1285 dev_err(&pdev->dev, "Failed to register netdev\n"); 1286 goto err_register_netdev; 1287 } 1288 1289 netdev_info(netdev, "irq %d, mapped at %p\n", priv->irq, priv->base); 1290 1291 if (!is_valid_ether_addr(netdev->dev_addr)) { |
1292 random_ether_addr(netdev->dev_addr); | 1292 eth_hw_addr_random(netdev); |
1293 netdev_info(netdev, "generated random MAC address %pM\n", 1294 netdev->dev_addr); 1295 } 1296 1297 return 0; 1298 1299err_register_netdev: 1300 phy_disconnect(priv->phydev); --- 68 unchanged lines hidden --- | 1293 netdev_info(netdev, "generated random MAC address %pM\n", 1294 netdev->dev_addr); 1295 } 1296 1297 return 0; 1298 1299err_register_netdev: 1300 phy_disconnect(priv->phydev); --- 68 unchanged lines hidden --- |