diff options
-rw-r--r-- | drivers/net/wireless/p54/p54.h | 6 | ||||
-rw-r--r-- | drivers/net/wireless/p54/p54common.h | 6 | ||||
-rw-r--r-- | drivers/net/wireless/p54/p54pci.c | 34 | ||||
-rw-r--r-- | drivers/net/wireless/p54/p54pci.h | 10 | ||||
-rw-r--r-- | drivers/net/wireless/p54/p54usb.c | 32 | ||||
-rw-r--r-- | drivers/net/wireless/p54/p54usb.h | 6 |
6 files changed, 47 insertions, 47 deletions
diff --git a/drivers/net/wireless/p54/p54.h b/drivers/net/wireless/p54/p54.h index 4801a363507b..10df07de9e52 100644 --- a/drivers/net/wireless/p54/p54.h +++ b/drivers/net/wireless/p54/p54.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef PRISM54_H | 1 | #ifndef P54_H |
2 | #define PRISM54_H | 2 | #define P54_H |
3 | 3 | ||
4 | /* | 4 | /* |
5 | * Shared defines for all mac80211 Prism54 code | 5 | * Shared defines for all mac80211 Prism54 code |
@@ -76,4 +76,4 @@ void p54_fill_eeprom_readback(struct p54_control_hdr *hdr); | |||
76 | struct ieee80211_hw *p54_init_common(size_t priv_data_len); | 76 | struct ieee80211_hw *p54_init_common(size_t priv_data_len); |
77 | void p54_free_common(struct ieee80211_hw *dev); | 77 | void p54_free_common(struct ieee80211_hw *dev); |
78 | 78 | ||
79 | #endif /* PRISM54_H */ | 79 | #endif /* P54_H */ |
diff --git a/drivers/net/wireless/p54/p54common.h b/drivers/net/wireless/p54/p54common.h index 8db6c0e8e540..9bc2a1cf4b57 100644 --- a/drivers/net/wireless/p54/p54common.h +++ b/drivers/net/wireless/p54/p54common.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef PRISM54COMMON_H | 1 | #ifndef P54COMMON_H |
2 | #define PRISM54COMMON_H | 2 | #define P54COMMON_H |
3 | 3 | ||
4 | /* | 4 | /* |
5 | * Common code specific definitions for mac80211 Prism54 drivers | 5 | * Common code specific definitions for mac80211 Prism54 drivers |
@@ -250,4 +250,4 @@ struct p54_tx_control_vdcf { | |||
250 | __le16 frameburst; | 250 | __le16 frameburst; |
251 | } __attribute__ ((packed)); | 251 | } __attribute__ ((packed)); |
252 | 252 | ||
253 | #endif /* PRISM54COMMON_H */ | 253 | #endif /* P54COMMON_H */ |
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 | ||
675 | static struct pci_driver p54p_driver = { | 675 | static 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), |
diff --git a/drivers/net/wireless/p54/p54pci.h b/drivers/net/wireless/p54/p54pci.h index 5bedd7af385d..07678ef5ddc8 100644 --- a/drivers/net/wireless/p54/p54pci.h +++ b/drivers/net/wireless/p54/p54pci.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef PRISM54PCI_H | 1 | #ifndef P54PCI_H |
2 | #define PRISM54PCI_H | 2 | #define P54PCI_H |
3 | 3 | ||
4 | /* | 4 | /* |
5 | * Defines for PCI based mac80211 Prism54 driver | 5 | * Defines for PCI based mac80211 Prism54 driver |
@@ -68,7 +68,7 @@ struct p54p_csr { | |||
68 | } __attribute__ ((packed)); | 68 | } __attribute__ ((packed)); |
69 | 69 | ||
70 | /* usb backend only needs the register defines above */ | 70 | /* usb backend only needs the register defines above */ |
71 | #ifndef PRISM54USB_H | 71 | #ifndef P54USB_H |
72 | struct p54p_desc { | 72 | struct p54p_desc { |
73 | __le32 host_addr; | 73 | __le32 host_addr; |
74 | __le32 device_addr; | 74 | __le32 device_addr; |
@@ -102,5 +102,5 @@ struct p54p_priv { | |||
102 | struct completion boot_comp; | 102 | struct completion boot_comp; |
103 | }; | 103 | }; |
104 | 104 | ||
105 | #endif /* PRISM54USB_H */ | 105 | #endif /* P54USB_H */ |
106 | #endif /* PRISM54PCI_H */ | 106 | #endif /* P54PCI_H */ |
diff --git a/drivers/net/wireless/p54/p54usb.c b/drivers/net/wireless/p54/p54usb.c index cbaca23a9453..8a420df605af 100644 --- a/drivers/net/wireless/p54/p54usb.c +++ b/drivers/net/wireless/p54/p54usb.c | |||
@@ -322,7 +322,7 @@ static int p54u_read_eeprom(struct ieee80211_hw *dev) | |||
322 | 322 | ||
323 | buf = kmalloc(0x2020, GFP_KERNEL); | 323 | buf = kmalloc(0x2020, GFP_KERNEL); |
324 | if (!buf) { | 324 | if (!buf) { |
325 | printk(KERN_ERR "prism54usb: cannot allocate memory for " | 325 | printk(KERN_ERR "p54usb: cannot allocate memory for " |
326 | "eeprom readback!\n"); | 326 | "eeprom readback!\n"); |
327 | return -ENOMEM; | 327 | return -ENOMEM; |
328 | } | 328 | } |
@@ -331,7 +331,7 @@ static int p54u_read_eeprom(struct ieee80211_hw *dev) | |||
331 | *((u32 *) buf) = priv->common.rx_start; | 331 | *((u32 *) buf) = priv->common.rx_start; |
332 | err = p54u_bulk_msg(priv, P54U_PIPE_DATA, buf, sizeof(u32)); | 332 | err = p54u_bulk_msg(priv, P54U_PIPE_DATA, buf, sizeof(u32)); |
333 | if (err) { | 333 | if (err) { |
334 | printk(KERN_ERR "prism54usb: addr send failed\n"); | 334 | printk(KERN_ERR "p54usb: addr send failed\n"); |
335 | goto fail; | 335 | goto fail; |
336 | } | 336 | } |
337 | } else { | 337 | } else { |
@@ -341,7 +341,7 @@ static int p54u_read_eeprom(struct ieee80211_hw *dev) | |||
341 | reg->val = cpu_to_le32(ISL38XX_DEV_INT_DATA); | 341 | reg->val = cpu_to_le32(ISL38XX_DEV_INT_DATA); |
342 | err = p54u_bulk_msg(priv, P54U_PIPE_DEV, buf, sizeof(*reg)); | 342 | err = p54u_bulk_msg(priv, P54U_PIPE_DEV, buf, sizeof(*reg)); |
343 | if (err) { | 343 | if (err) { |
344 | printk(KERN_ERR "prism54usb: dev_int send failed\n"); | 344 | printk(KERN_ERR "p54usb: dev_int send failed\n"); |
345 | goto fail; | 345 | goto fail; |
346 | } | 346 | } |
347 | } | 347 | } |
@@ -359,7 +359,7 @@ static int p54u_read_eeprom(struct ieee80211_hw *dev) | |||
359 | err = p54u_bulk_msg(priv, P54U_PIPE_DATA, buf, | 359 | err = p54u_bulk_msg(priv, P54U_PIPE_DATA, buf, |
360 | EEPROM_READBACK_LEN + priv->common.tx_hdr_len); | 360 | EEPROM_READBACK_LEN + priv->common.tx_hdr_len); |
361 | if (err) { | 361 | if (err) { |
362 | printk(KERN_ERR "prism54usb: eeprom req send failed\n"); | 362 | printk(KERN_ERR "p54usb: eeprom req send failed\n"); |
363 | goto fail; | 363 | goto fail; |
364 | } | 364 | } |
365 | 365 | ||
@@ -369,7 +369,7 @@ static int p54u_read_eeprom(struct ieee80211_hw *dev) | |||
369 | if (!err && alen > offset) { | 369 | if (!err && alen > offset) { |
370 | p54_parse_eeprom(dev, (u8 *)buf + offset, alen - offset); | 370 | p54_parse_eeprom(dev, (u8 *)buf + offset, alen - offset); |
371 | } else { | 371 | } else { |
372 | printk(KERN_ERR "prism54usb: eeprom read failed!\n"); | 372 | printk(KERN_ERR "p54usb: eeprom read failed!\n"); |
373 | err = -EINVAL; | 373 | err = -EINVAL; |
374 | goto fail; | 374 | goto fail; |
375 | } | 375 | } |
@@ -458,7 +458,7 @@ static int p54u_upload_firmware_3887(struct ieee80211_hw *dev) | |||
458 | 458 | ||
459 | err = p54u_bulk_msg(priv, P54U_PIPE_DATA, buf, block_size); | 459 | err = p54u_bulk_msg(priv, P54U_PIPE_DATA, buf, block_size); |
460 | if (err) { | 460 | if (err) { |
461 | printk(KERN_ERR "prism54usb: firmware upload failed!\n"); | 461 | printk(KERN_ERR "p54usb: firmware upload failed!\n"); |
462 | goto err_upload_failed; | 462 | goto err_upload_failed; |
463 | } | 463 | } |
464 | 464 | ||
@@ -469,7 +469,7 @@ static int p54u_upload_firmware_3887(struct ieee80211_hw *dev) | |||
469 | *((__le32 *)buf) = cpu_to_le32(~crc32_le(~0, fw_entry->data, fw_entry->size)); | 469 | *((__le32 *)buf) = cpu_to_le32(~crc32_le(~0, fw_entry->data, fw_entry->size)); |
470 | err = p54u_bulk_msg(priv, P54U_PIPE_DATA, buf, sizeof(u32)); | 470 | err = p54u_bulk_msg(priv, P54U_PIPE_DATA, buf, sizeof(u32)); |
471 | if (err) { | 471 | if (err) { |
472 | printk(KERN_ERR "prism54usb: firmware upload failed!\n"); | 472 | printk(KERN_ERR "p54usb: firmware upload failed!\n"); |
473 | goto err_upload_failed; | 473 | goto err_upload_failed; |
474 | } | 474 | } |
475 | 475 | ||
@@ -480,13 +480,13 @@ static int p54u_upload_firmware_3887(struct ieee80211_hw *dev) | |||
480 | break; | 480 | break; |
481 | 481 | ||
482 | if (alen > 5 && !memcmp(buf, "ERROR", 5)) { | 482 | if (alen > 5 && !memcmp(buf, "ERROR", 5)) { |
483 | printk(KERN_INFO "prism54usb: firmware upload failed!\n"); | 483 | printk(KERN_INFO "p54usb: firmware upload failed!\n"); |
484 | err = -EINVAL; | 484 | err = -EINVAL; |
485 | break; | 485 | break; |
486 | } | 486 | } |
487 | 487 | ||
488 | if (time_after(jiffies, timeout)) { | 488 | if (time_after(jiffies, timeout)) { |
489 | printk(KERN_ERR "prism54usb: firmware boot timed out!\n"); | 489 | printk(KERN_ERR "p54usb: firmware boot timed out!\n"); |
490 | err = -ETIMEDOUT; | 490 | err = -ETIMEDOUT; |
491 | break; | 491 | break; |
492 | } | 492 | } |
@@ -498,7 +498,7 @@ static int p54u_upload_firmware_3887(struct ieee80211_hw *dev) | |||
498 | buf[1] = '\r'; | 498 | buf[1] = '\r'; |
499 | err = p54u_bulk_msg(priv, P54U_PIPE_DATA, buf, 2); | 499 | err = p54u_bulk_msg(priv, P54U_PIPE_DATA, buf, 2); |
500 | if (err) { | 500 | if (err) { |
501 | printk(KERN_ERR "prism54usb: firmware boot failed!\n"); | 501 | printk(KERN_ERR "p54usb: firmware boot failed!\n"); |
502 | goto err_upload_failed; | 502 | goto err_upload_failed; |
503 | } | 503 | } |
504 | 504 | ||
@@ -660,7 +660,7 @@ static int p54u_upload_firmware_net2280(struct ieee80211_hw *dev) | |||
660 | 660 | ||
661 | err = p54u_bulk_msg(priv, P54U_PIPE_DATA, buf, block_len); | 661 | err = p54u_bulk_msg(priv, P54U_PIPE_DATA, buf, block_len); |
662 | if (err) { | 662 | if (err) { |
663 | printk(KERN_ERR "prism54usb: firmware block upload " | 663 | printk(KERN_ERR "p54usb: firmware block upload " |
664 | "failed\n"); | 664 | "failed\n"); |
665 | goto fail; | 665 | goto fail; |
666 | } | 666 | } |
@@ -694,7 +694,7 @@ static int p54u_upload_firmware_net2280(struct ieee80211_hw *dev) | |||
694 | 0x002C | (unsigned long)&devreg->direct_mem_win); | 694 | 0x002C | (unsigned long)&devreg->direct_mem_win); |
695 | if (!(reg & cpu_to_le32(ISL38XX_DMA_STATUS_DONE)) || | 695 | if (!(reg & cpu_to_le32(ISL38XX_DMA_STATUS_DONE)) || |
696 | !(reg & cpu_to_le32(ISL38XX_DMA_STATUS_READY))) { | 696 | !(reg & cpu_to_le32(ISL38XX_DMA_STATUS_READY))) { |
697 | printk(KERN_ERR "prism54usb: firmware DMA transfer " | 697 | printk(KERN_ERR "p54usb: firmware DMA transfer " |
698 | "failed\n"); | 698 | "failed\n"); |
699 | goto fail; | 699 | goto fail; |
700 | } | 700 | } |
@@ -802,7 +802,7 @@ static int __devinit p54u_probe(struct usb_interface *intf, | |||
802 | 802 | ||
803 | dev = p54_init_common(sizeof(*priv)); | 803 | dev = p54_init_common(sizeof(*priv)); |
804 | if (!dev) { | 804 | if (!dev) { |
805 | printk(KERN_ERR "prism54usb: ieee80211 alloc failed\n"); | 805 | printk(KERN_ERR "p54usb: ieee80211 alloc failed\n"); |
806 | return -ENOMEM; | 806 | return -ENOMEM; |
807 | } | 807 | } |
808 | 808 | ||
@@ -858,7 +858,7 @@ static int __devinit p54u_probe(struct usb_interface *intf, | |||
858 | if (!is_valid_ether_addr(dev->wiphy->perm_addr)) { | 858 | if (!is_valid_ether_addr(dev->wiphy->perm_addr)) { |
859 | u8 perm_addr[ETH_ALEN]; | 859 | u8 perm_addr[ETH_ALEN]; |
860 | 860 | ||
861 | printk(KERN_WARNING "prism54usb: Invalid hwaddr! Using randomly generated MAC addr\n"); | 861 | printk(KERN_WARNING "p54usb: Invalid hwaddr! Using randomly generated MAC addr\n"); |
862 | random_ether_addr(perm_addr); | 862 | random_ether_addr(perm_addr); |
863 | SET_IEEE80211_PERM_ADDR(dev, perm_addr); | 863 | SET_IEEE80211_PERM_ADDR(dev, perm_addr); |
864 | } | 864 | } |
@@ -867,7 +867,7 @@ static int __devinit p54u_probe(struct usb_interface *intf, | |||
867 | 867 | ||
868 | err = ieee80211_register_hw(dev); | 868 | err = ieee80211_register_hw(dev); |
869 | if (err) { | 869 | if (err) { |
870 | printk(KERN_ERR "prism54usb: Cannot register netdevice\n"); | 870 | printk(KERN_ERR "p54usb: Cannot register netdevice\n"); |
871 | goto err_free_dev; | 871 | goto err_free_dev; |
872 | } | 872 | } |
873 | 873 | ||
@@ -902,7 +902,7 @@ static void __devexit p54u_disconnect(struct usb_interface *intf) | |||
902 | } | 902 | } |
903 | 903 | ||
904 | static struct usb_driver p54u_driver = { | 904 | static struct usb_driver p54u_driver = { |
905 | .name = "prism54usb", | 905 | .name = "p54usb", |
906 | .id_table = p54u_table, | 906 | .id_table = p54u_table, |
907 | .probe = p54u_probe, | 907 | .probe = p54u_probe, |
908 | .disconnect = p54u_disconnect, | 908 | .disconnect = p54u_disconnect, |
diff --git a/drivers/net/wireless/p54/p54usb.h b/drivers/net/wireless/p54/p54usb.h index d1896b396c1c..1baaff058c5a 100644 --- a/drivers/net/wireless/p54/p54usb.h +++ b/drivers/net/wireless/p54/p54usb.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef PRISM54USB_H | 1 | #ifndef P54USB_H |
2 | #define PRISM54USB_H | 2 | #define P54USB_H |
3 | 3 | ||
4 | /* | 4 | /* |
5 | * Defines for USB based mac80211 Prism54 driver | 5 | * Defines for USB based mac80211 Prism54 driver |
@@ -130,4 +130,4 @@ struct p54u_priv { | |||
130 | struct sk_buff_head rx_queue; | 130 | struct sk_buff_head rx_queue; |
131 | }; | 131 | }; |
132 | 132 | ||
133 | #endif /* PRISM54USB_H */ | 133 | #endif /* P54USB_H */ |