diff options
Diffstat (limited to 'drivers/net/wireless/orinoco_pci.c')
-rw-r--r-- | drivers/net/wireless/orinoco_pci.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/orinoco_pci.c b/drivers/net/wireless/orinoco_pci.c index df37b95607..1c105f40f8 100644 --- a/drivers/net/wireless/orinoco_pci.c +++ b/drivers/net/wireless/orinoco_pci.c | |||
@@ -161,7 +161,6 @@ static int orinoco_pci_init_one(struct pci_dev *pdev, | |||
161 | err = -EBUSY; | 161 | err = -EBUSY; |
162 | goto fail_irq; | 162 | goto fail_irq; |
163 | } | 163 | } |
164 | orinoco_pci_setup_netdev(dev, pdev, 0); | ||
165 | 164 | ||
166 | err = orinoco_pci_cor_reset(priv); | 165 | err = orinoco_pci_cor_reset(priv); |
167 | if (err) { | 166 | if (err) { |
@@ -176,6 +175,8 @@ static int orinoco_pci_init_one(struct pci_dev *pdev, | |||
176 | } | 175 | } |
177 | 176 | ||
178 | pci_set_drvdata(pdev, dev); | 177 | pci_set_drvdata(pdev, dev); |
178 | printk(KERN_DEBUG "%s: " DRIVER_NAME " at %s\n", dev->name, | ||
179 | pci_name(pdev)); | ||
179 | 180 | ||
180 | return 0; | 181 | return 0; |
181 | 182 | ||
@@ -204,7 +205,7 @@ static void __devexit orinoco_pci_remove_one(struct pci_dev *pdev) | |||
204 | struct orinoco_private *priv = netdev_priv(dev); | 205 | struct orinoco_private *priv = netdev_priv(dev); |
205 | 206 | ||
206 | unregister_netdev(dev); | 207 | unregister_netdev(dev); |
207 | free_irq(dev->irq, dev); | 208 | free_irq(pdev->irq, dev); |
208 | pci_set_drvdata(pdev, NULL); | 209 | pci_set_drvdata(pdev, NULL); |
209 | free_orinocodev(dev); | 210 | free_orinocodev(dev); |
210 | pci_iounmap(pdev, priv->hw.iobase); | 211 | pci_iounmap(pdev, priv->hw.iobase); |