Commit 3c87dcbf authored by Subbaraya Sundeep Bhatta's avatar Subbaraya Sundeep Bhatta Committed by David S. Miller

net: ll_temac: Remove unnecessary ether_setup after alloc_etherdev

Calling ether_setup is redundant since alloc_etherdev calls it.
Signed-off-by: default avatarSubbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2c804d0f
...@@ -1012,7 +1012,6 @@ static int temac_of_probe(struct platform_device *op) ...@@ -1012,7 +1012,6 @@ static int temac_of_probe(struct platform_device *op)
if (!ndev) if (!ndev)
return -ENOMEM; return -ENOMEM;
ether_setup(ndev);
platform_set_drvdata(op, ndev); platform_set_drvdata(op, ndev);
SET_NETDEV_DEV(ndev, &op->dev); SET_NETDEV_DEV(ndev, &op->dev);
ndev->flags &= ~IFF_MULTICAST; /* clear multicast */ ndev->flags &= ~IFF_MULTICAST; /* clear multicast */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment