]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
net: ll_temac: Remove unnecessary ether_setup after alloc_etherdev
authorMichal Simek <michal.simek@xilinx.com>
Wed, 1 Oct 2014 05:53:25 +0000 (07:53 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 1 Oct 2014 05:54:58 +0000 (07:54 +0200)
Based on:
"net: axienet: Remove unnecessary ether_setup after alloc_etherdev"
(sha1: 9441a44b7c870e55d1aee0c85d225ffe478f6027)

Calling ether_setup is redundant since alloc_etherdev calls it.

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/net/ethernet/xilinx/ll_temac_main.c

index 33c51891b4006970662d95a06c8a47b7b1135cab..77ad66205bcaa0c47bfcfb8f779e739a8a661ce5 100644 (file)
@@ -1009,7 +1009,6 @@ static int temac_of_probe(struct platform_device *op)
        if (!ndev)
                return -ENOMEM;
 
-       ether_setup(ndev);
        platform_set_drvdata(op, ndev);
        SET_NETDEV_DEV(ndev, &op->dev);
        ndev->flags &= ~IFF_MULTICAST;  /* clear multicast */