aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/orinoco_nortel.c
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2006-05-01 02:13:33 -0400
committerJohn W. Linville <linville@tuxdriver.com>2006-05-05 17:10:41 -0400
commit461c078c9cdfc1d24a436a87daed90f18c3b0d0d (patch)
tree90b08022254282c74cba106e0d94431ad31dc598 /drivers/net/wireless/orinoco_nortel.c
parent95047dd6d00ad00e7f1f632db6b8ecaa704cfc7e (diff)
[PATCH] orinoco: don't put PCI resource data to the network device
The resource data in the network device is intended for ISA and other older busses, but not for PCI. Don't put PCI data there. Don't (ab)use the network device for keeping the IRQ number. Retire orinoco_pci_setup_netdev(), and print some minimal information to the kernel log instead, identifying the network device and the driver mostly to identify problems at startup. Scripts should rely on sysfs. Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/orinoco_nortel.c')
-rw-r--r--drivers/net/wireless/orinoco_nortel.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/orinoco_nortel.c b/drivers/net/wireless/orinoco_nortel.c
index 1596182f7412..74b9d5b2ba9e 100644
--- a/drivers/net/wireless/orinoco_nortel.c
+++ b/drivers/net/wireless/orinoco_nortel.c
@@ -206,7 +206,6 @@ static int orinoco_nortel_init_one(struct pci_dev *pdev,
206 err = -EBUSY; 206 err = -EBUSY;
207 goto fail_irq; 207 goto fail_irq;
208 } 208 }
209 orinoco_pci_setup_netdev(dev, pdev, 2);
210 209
211 err = orinoco_nortel_hw_init(card); 210 err = orinoco_nortel_hw_init(card);
212 if (err) { 211 if (err) {
@@ -227,6 +226,8 @@ static int orinoco_nortel_init_one(struct pci_dev *pdev,
227 } 226 }
228 227
229 pci_set_drvdata(pdev, dev); 228 pci_set_drvdata(pdev, dev);
229 printk(KERN_DEBUG "%s: " DRIVER_NAME " at %s\n", dev->name,
230 pci_name(pdev));
230 231
231 return 0; 232 return 0;
232 233
@@ -265,7 +266,7 @@ static void __devexit orinoco_nortel_remove_one(struct pci_dev *pdev)
265 iowrite16(0, card->bridge_io + 10); 266 iowrite16(0, card->bridge_io + 10);
266 267
267 unregister_netdev(dev); 268 unregister_netdev(dev);
268 free_irq(dev->irq, dev); 269 free_irq(pdev->irq, dev);
269 pci_set_drvdata(pdev, NULL); 270 pci_set_drvdata(pdev, NULL);
270 free_orinocodev(dev); 271 free_orinocodev(dev);
271 pci_iounmap(pdev, priv->hw.iobase); 272 pci_iounmap(pdev, priv->hw.iobase);