Commit 1489bdee authored by Hauke Mehrtens's avatar Hauke Mehrtens Committed by David S. Miller

b44: call netif_napi_del()

When the driver gets unregistered a call to netif_napi_del() was
missing, this all was also missing in the error paths of
b44_init_one().
Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c4c832f8
...@@ -2464,6 +2464,7 @@ static int b44_init_one(struct ssb_device *sdev, ...@@ -2464,6 +2464,7 @@ static int b44_init_one(struct ssb_device *sdev,
ssb_bus_may_powerdown(sdev->bus); ssb_bus_may_powerdown(sdev->bus);
err_out_free_dev: err_out_free_dev:
netif_napi_del(&bp->napi);
free_netdev(dev); free_netdev(dev);
out: out:
...@@ -2480,6 +2481,7 @@ static void b44_remove_one(struct ssb_device *sdev) ...@@ -2480,6 +2481,7 @@ static void b44_remove_one(struct ssb_device *sdev)
b44_unregister_phy_one(bp); b44_unregister_phy_one(bp);
ssb_device_disable(sdev, 0); ssb_device_disable(sdev, 0);
ssb_bus_may_powerdown(sdev->bus); ssb_bus_may_powerdown(sdev->bus);
netif_napi_del(&bp->napi);
free_netdev(dev); free_netdev(dev);
ssb_pcihost_set_power_state(sdev, PCI_D3hot); ssb_pcihost_set_power_state(sdev, PCI_D3hot);
ssb_set_drvdata(sdev, NULL); ssb_set_drvdata(sdev, NULL);
......
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