diff options
author | Christian Lamparter <chunkeey@web.de> | 2008-08-08 15:17:37 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-22 16:30:00 -0400 |
commit | 32ddf0718590f410d5f18cb4fcda419f4aeefc57 (patch) | |
tree | 5344f898001df626b0654f8251e067b65b301e1a /drivers/net/wireless/p54/p54usb.c | |
parent | 6042a3e3ff7943e4ff5cbcb8c223ea87337501ea (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/p54usb.c')
-rw-r--r-- | drivers/net/wireless/p54/p54usb.c | 32 |
1 files changed, 16 insertions, 16 deletions
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, |