Skip to content

Commit

Permalink
HACK: net: lan78xx: drop irq domain usage
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Wahren <[email protected]>
  • Loading branch information
lategoodbye committed Jul 20, 2019
1 parent 6e787b8 commit 09fe244
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions drivers/net/usb/lan78xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -3034,27 +3034,20 @@ static int lan78xx_bind(struct lan78xx_net *dev, struct usb_interface *intf)

dev->net->hw_features = dev->net->features;

ret = lan78xx_setup_irq_domain(dev);
if (ret < 0) {
netdev_warn(dev->net,
"lan78xx_setup_irq_domain() failed : %d", ret);
goto out1;
}

dev->net->hard_header_len += TX_OVERHEAD;
dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len;

/* Init all registers */
ret = lan78xx_reset(dev);
if (ret) {
netdev_warn(dev->net, "Registers INIT FAILED....");
goto out2;
goto out1;
}

ret = lan78xx_mdio_init(dev);
if (ret) {
netdev_warn(dev->net, "MDIO INIT FAILED.....");
goto out2;
goto out1;
}

dev->net->flags |= IFF_MULTICAST;
Expand All @@ -3063,9 +3056,6 @@ static int lan78xx_bind(struct lan78xx_net *dev, struct usb_interface *intf)

return ret;

out2:
lan78xx_remove_irq_domain(dev);

out1:
netdev_warn(dev->net, "Bind routine FAILED");
cancel_work_sync(&pdata->set_multicast);
Expand Down

0 comments on commit 09fe244

Please sign in to comment.