aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/p54/p54pci.c
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@web.de>2008-08-08 15:17:37 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-08-22 16:30:00 -0400
commit32ddf0718590f410d5f18cb4fcda419f4aeefc57 (patch)
tree5344f898001df626b0654f8251e067b65b301e1a /drivers/net/wireless/p54/p54pci.c
parent6042a3e3ff7943e4ff5cbcb8c223ea87337501ea (diff)
p54: rename prism54xyz -> p54xyz
It's been a long time, but fullmac prism54 driver is still around... I think we should rename every prism54* in order to avoid some confusion about "what is actually what" in the future ;-). Thanks-to: Maxi <maxi@daemonizer.de> Signed-off-by: Christian Lamparter <chunkeey@web.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54/p54pci.c')
-rw-r--r--drivers/net/wireless/p54/p54pci.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/net/wireless/p54/p54pci.c b/drivers/net/wireless/p54/p54pci.c
index 7dd4add4bf4e..ea2dc3d93c4d 100644
--- a/drivers/net/wireless/p54/p54pci.c
+++ b/drivers/net/wireless/p54/p54pci.c
@@ -75,7 +75,7 @@ static int p54p_upload_firmware(struct ieee80211_hw *dev)
75 75
76 err = request_firmware(&fw_entry, "isl3886", &priv->pdev->dev); 76 err = request_firmware(&fw_entry, "isl3886", &priv->pdev->dev);
77 if (err) { 77 if (err) {
78 printk(KERN_ERR "%s (prism54pci): cannot find firmware " 78 printk(KERN_ERR "%s (p54pci): cannot find firmware "
79 "(isl3886)\n", pci_name(priv->pdev)); 79 "(isl3886)\n", pci_name(priv->pdev));
80 return err; 80 return err;
81 } 81 }
@@ -150,16 +150,16 @@ static int p54p_read_eeprom(struct ieee80211_hw *dev)
150 150
151 init_completion(&priv->boot_comp); 151 init_completion(&priv->boot_comp);
152 err = request_irq(priv->pdev->irq, &p54p_simple_interrupt, 152 err = request_irq(priv->pdev->irq, &p54p_simple_interrupt,
153 IRQF_SHARED, "prism54pci", priv); 153 IRQF_SHARED, "p54pci", priv);
154 if (err) { 154 if (err) {
155 printk(KERN_ERR "%s (prism54pci): failed to register IRQ handler\n", 155 printk(KERN_ERR "%s (p54pci): failed to register IRQ handler\n",
156 pci_name(priv->pdev)); 156 pci_name(priv->pdev));
157 return err; 157 return err;
158 } 158 }
159 159
160 eeprom = kmalloc(0x2010 + EEPROM_READBACK_LEN, GFP_KERNEL); 160 eeprom = kmalloc(0x2010 + EEPROM_READBACK_LEN, GFP_KERNEL);
161 if (!eeprom) { 161 if (!eeprom) {
162 printk(KERN_ERR "%s (prism54pci): no memory for eeprom!\n", 162 printk(KERN_ERR "%s (p54pci): no memory for eeprom!\n",
163 pci_name(priv->pdev)); 163 pci_name(priv->pdev));
164 err = -ENOMEM; 164 err = -ENOMEM;
165 goto out; 165 goto out;
@@ -177,7 +177,7 @@ static int p54p_read_eeprom(struct ieee80211_hw *dev)
177 P54P_WRITE(dev_int, cpu_to_le32(ISL38XX_DEV_INT_RESET)); 177 P54P_WRITE(dev_int, cpu_to_le32(ISL38XX_DEV_INT_RESET));
178 178
179 if (!wait_for_completion_interruptible_timeout(&priv->boot_comp, HZ)) { 179 if (!wait_for_completion_interruptible_timeout(&priv->boot_comp, HZ)) {
180 printk(KERN_ERR "%s (prism54pci): Cannot boot firmware!\n", 180 printk(KERN_ERR "%s (p54pci): Cannot boot firmware!\n",
181 pci_name(priv->pdev)); 181 pci_name(priv->pdev));
182 err = -EINVAL; 182 err = -EINVAL;
183 goto out; 183 goto out;
@@ -219,7 +219,7 @@ static int p54p_read_eeprom(struct ieee80211_hw *dev)
219 alen = le16_to_cpu(ring_control->rx_mgmt[0].len); 219 alen = le16_to_cpu(ring_control->rx_mgmt[0].len);
220 if (le32_to_cpu(ring_control->device_idx[2]) != 1 || 220 if (le32_to_cpu(ring_control->device_idx[2]) != 1 ||
221 alen < 0x10) { 221 alen < 0x10) {
222 printk(KERN_ERR "%s (prism54pci): Cannot read eeprom!\n", 222 printk(KERN_ERR "%s (p54pci): Cannot read eeprom!\n",
223 pci_name(priv->pdev)); 223 pci_name(priv->pdev));
224 err = -EINVAL; 224 err = -EINVAL;
225 goto out; 225 goto out;
@@ -412,7 +412,7 @@ static int p54p_open(struct ieee80211_hw *dev)
412 412
413 init_completion(&priv->boot_comp); 413 init_completion(&priv->boot_comp);
414 err = request_irq(priv->pdev->irq, &p54p_interrupt, 414 err = request_irq(priv->pdev->irq, &p54p_interrupt,
415 IRQF_SHARED, "prism54pci", dev); 415 IRQF_SHARED, "p54pci", dev);
416 if (err) { 416 if (err) {
417 printk(KERN_ERR "%s: failed to register IRQ handler\n", 417 printk(KERN_ERR "%s: failed to register IRQ handler\n",
418 wiphy_name(dev->wiphy)); 418 wiphy_name(dev->wiphy));
@@ -506,7 +506,7 @@ static int __devinit p54p_probe(struct pci_dev *pdev,
506 506
507 err = pci_enable_device(pdev); 507 err = pci_enable_device(pdev);
508 if (err) { 508 if (err) {
509 printk(KERN_ERR "%s (prism54pci): Cannot enable new PCI device\n", 509 printk(KERN_ERR "%s (p54pci): Cannot enable new PCI device\n",
510 pci_name(pdev)); 510 pci_name(pdev));
511 return err; 511 return err;
512 } 512 }
@@ -514,22 +514,22 @@ static int __devinit p54p_probe(struct pci_dev *pdev,
514 mem_addr = pci_resource_start(pdev, 0); 514 mem_addr = pci_resource_start(pdev, 0);
515 mem_len = pci_resource_len(pdev, 0); 515 mem_len = pci_resource_len(pdev, 0);
516 if (mem_len < sizeof(struct p54p_csr)) { 516 if (mem_len < sizeof(struct p54p_csr)) {
517 printk(KERN_ERR "%s (prism54pci): Too short PCI resources\n", 517 printk(KERN_ERR "%s (p54pci): Too short PCI resources\n",
518 pci_name(pdev)); 518 pci_name(pdev));
519 pci_disable_device(pdev); 519 pci_disable_device(pdev);
520 return err; 520 return err;
521 } 521 }
522 522
523 err = pci_request_regions(pdev, "prism54pci"); 523 err = pci_request_regions(pdev, "p54pci");
524 if (err) { 524 if (err) {
525 printk(KERN_ERR "%s (prism54pci): Cannot obtain PCI resources\n", 525 printk(KERN_ERR "%s (p54pci): Cannot obtain PCI resources\n",
526 pci_name(pdev)); 526 pci_name(pdev));
527 return err; 527 return err;
528 } 528 }
529 529
530 if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) || 530 if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) ||
531 pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK)) { 531 pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK)) {
532 printk(KERN_ERR "%s (prism54pci): No suitable DMA available\n", 532 printk(KERN_ERR "%s (p54pci): No suitable DMA available\n",
533 pci_name(pdev)); 533 pci_name(pdev));
534 goto err_free_reg; 534 goto err_free_reg;
535 } 535 }
@@ -542,7 +542,7 @@ static int __devinit p54p_probe(struct pci_dev *pdev,
542 542
543 dev = p54_init_common(sizeof(*priv)); 543 dev = p54_init_common(sizeof(*priv));
544 if (!dev) { 544 if (!dev) {
545 printk(KERN_ERR "%s (prism54pci): ieee80211 alloc failed\n", 545 printk(KERN_ERR "%s (p54pci): ieee80211 alloc failed\n",
546 pci_name(pdev)); 546 pci_name(pdev));
547 err = -ENOMEM; 547 err = -ENOMEM;
548 goto err_free_reg; 548 goto err_free_reg;
@@ -556,7 +556,7 @@ static int __devinit p54p_probe(struct pci_dev *pdev,
556 556
557 priv->map = ioremap(mem_addr, mem_len); 557 priv->map = ioremap(mem_addr, mem_len);
558 if (!priv->map) { 558 if (!priv->map) {
559 printk(KERN_ERR "%s (prism54pci): Cannot map device memory\n", 559 printk(KERN_ERR "%s (p54pci): Cannot map device memory\n",
560 pci_name(pdev)); 560 pci_name(pdev));
561 err = -EINVAL; // TODO: use a better error code? 561 err = -EINVAL; // TODO: use a better error code?
562 goto err_free_dev; 562 goto err_free_dev;
@@ -565,7 +565,7 @@ static int __devinit p54p_probe(struct pci_dev *pdev,
565 priv->ring_control = pci_alloc_consistent(pdev, sizeof(*priv->ring_control), 565 priv->ring_control = pci_alloc_consistent(pdev, sizeof(*priv->ring_control),
566 &priv->ring_control_dma); 566 &priv->ring_control_dma);
567 if (!priv->ring_control) { 567 if (!priv->ring_control) {
568 printk(KERN_ERR "%s (prism54pci): Cannot allocate rings\n", 568 printk(KERN_ERR "%s (p54pci): Cannot allocate rings\n",
569 pci_name(pdev)); 569 pci_name(pdev));
570 err = -ENOMEM; 570 err = -ENOMEM;
571 goto err_iounmap; 571 goto err_iounmap;
@@ -588,7 +588,7 @@ static int __devinit p54p_probe(struct pci_dev *pdev,
588 588
589 err = ieee80211_register_hw(dev); 589 err = ieee80211_register_hw(dev);
590 if (err) { 590 if (err) {
591 printk(KERN_ERR "%s (prism54pci): Cannot register netdevice\n", 591 printk(KERN_ERR "%s (p54pci): Cannot register netdevice\n",
592 pci_name(pdev)); 592 pci_name(pdev));
593 goto err_free_common; 593 goto err_free_common;
594 } 594 }
@@ -673,7 +673,7 @@ static int p54p_resume(struct pci_dev *pdev)
673#endif /* CONFIG_PM */ 673#endif /* CONFIG_PM */
674 674
675static struct pci_driver p54p_driver = { 675static struct pci_driver p54p_driver = {
676 .name = "prism54pci", 676 .name = "p54pci",
677 .id_table = p54p_table, 677 .id_table = p54p_table,
678 .probe = p54p_probe, 678 .probe = p54p_probe,
679 .remove = __devexit_p(p54p_remove), 679 .remove = __devexit_p(p54p_remove),