ftmac100.c (7483948fdd31a8642ef0288aab6f368b98d53c29) | ftmac100.c (f2cedb63df14342ad40a8b5b324fc5d94a60b665) |
---|---|
1/* 2 * Faraday FTMAC100 10/100 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 --- 1119 unchanged lines hidden (view full) --- 1128 if (err) { 1129 dev_err(&pdev->dev, "Failed to register netdev\n"); 1130 goto err_register_netdev; 1131 } 1132 1133 netdev_info(netdev, "irq %d, mapped at %p\n", priv->irq, priv->base); 1134 1135 if (!is_valid_ether_addr(netdev->dev_addr)) { | 1/* 2 * Faraday FTMAC100 10/100 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 --- 1119 unchanged lines hidden (view full) --- 1128 if (err) { 1129 dev_err(&pdev->dev, "Failed to register netdev\n"); 1130 goto err_register_netdev; 1131 } 1132 1133 netdev_info(netdev, "irq %d, mapped at %p\n", priv->irq, priv->base); 1134 1135 if (!is_valid_ether_addr(netdev->dev_addr)) { |
1136 random_ether_addr(netdev->dev_addr); | 1136 eth_hw_addr_random(netdev); |
1137 netdev_info(netdev, "generated random MAC address %pM\n", 1138 netdev->dev_addr); 1139 } 1140 1141 return 0; 1142 1143err_register_netdev: 1144 iounmap(priv->base); --- 58 unchanged lines hidden --- | 1137 netdev_info(netdev, "generated random MAC address %pM\n", 1138 netdev->dev_addr); 1139 } 1140 1141 return 0; 1142 1143err_register_netdev: 1144 iounmap(priv->base); --- 58 unchanged lines hidden --- |