Commit c17a4a62 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[netdrvr starfire] fix unregister_netdev call site

parent 498bb30a
...@@ -2179,12 +2179,11 @@ static void __devexit starfire_remove_one (struct pci_dev *pdev) ...@@ -2179,12 +2179,11 @@ static void __devexit starfire_remove_one (struct pci_dev *pdev)
if (!dev) if (!dev)
BUG(); BUG();
unregister_netdev(dev);
np = dev->priv; np = dev->priv;
if (np->queue_mem) if (np->queue_mem)
pci_free_consistent(pdev, np->queue_mem_size, np->queue_mem, np->queue_mem_dma); pci_free_consistent(pdev, np->queue_mem_size, np->queue_mem, np->queue_mem_dma);
unregister_netdev(dev);
/* XXX: add wakeup code -- requires firmware for MagicPacket */ /* XXX: add wakeup code -- requires firmware for MagicPacket */
pci_set_power_state(pdev, 3); /* go to sleep in D3 mode */ pci_set_power_state(pdev, 3); /* go to sleep in D3 mode */
pci_disable_device(pdev); pci_disable_device(pdev);
......
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