diff options
author | Joe Perches <joe@perches.com> | 2010-07-26 17:39:58 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-27 15:14:13 -0400 |
commit | c96c31e499b70964cfc88744046c998bb710e4b8 (patch) | |
tree | 0157102fbc952e3646690f3491199607669eed69 /drivers/net/wireless/rtl818x | |
parent | e1db74fcc3d95c8a051ec457241b5aa65a01a603 (diff) |
drivers/net/wireless: Use wiphy_<level>
Standardize the logging macros used.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtl818x')
-rw-r--r-- | drivers/net/wireless/rtl818x/rtl8180_dev.c | 17 | ||||
-rw-r--r-- | drivers/net/wireless/rtl818x/rtl8187_dev.c | 11 | ||||
-rw-r--r-- | drivers/net/wireless/rtl818x/rtl8187_rtl8225.c | 8 |
3 files changed, 16 insertions, 20 deletions
diff --git a/drivers/net/wireless/rtl818x/rtl8180_dev.c b/drivers/net/wireless/rtl818x/rtl8180_dev.c index d8b186a260ed..1d8178563d76 100644 --- a/drivers/net/wireless/rtl818x/rtl8180_dev.c +++ b/drivers/net/wireless/rtl818x/rtl8180_dev.c | |||
@@ -361,7 +361,7 @@ static int rtl8180_init_hw(struct ieee80211_hw *dev) | |||
361 | 361 | ||
362 | /* check success of reset */ | 362 | /* check success of reset */ |
363 | if (rtl818x_ioread8(priv, &priv->map->CMD) & RTL818X_CMD_RESET) { | 363 | if (rtl818x_ioread8(priv, &priv->map->CMD) & RTL818X_CMD_RESET) { |
364 | printk(KERN_ERR "%s: reset timeout!\n", wiphy_name(dev->wiphy)); | 364 | wiphy_err(dev->wiphy, "reset timeout!\n"); |
365 | return -ETIMEDOUT; | 365 | return -ETIMEDOUT; |
366 | } | 366 | } |
367 | 367 | ||
@@ -445,8 +445,7 @@ static int rtl8180_init_rx_ring(struct ieee80211_hw *dev) | |||
445 | &priv->rx_ring_dma); | 445 | &priv->rx_ring_dma); |
446 | 446 | ||
447 | if (!priv->rx_ring || (unsigned long)priv->rx_ring & 0xFF) { | 447 | if (!priv->rx_ring || (unsigned long)priv->rx_ring & 0xFF) { |
448 | printk(KERN_ERR "%s: Cannot allocate RX ring\n", | 448 | wiphy_err(dev->wiphy, "cannot allocate rx ring\n"); |
449 | wiphy_name(dev->wiphy)); | ||
450 | return -ENOMEM; | 449 | return -ENOMEM; |
451 | } | 450 | } |
452 | 451 | ||
@@ -503,8 +502,8 @@ static int rtl8180_init_tx_ring(struct ieee80211_hw *dev, | |||
503 | 502 | ||
504 | ring = pci_alloc_consistent(priv->pdev, sizeof(*ring) * entries, &dma); | 503 | ring = pci_alloc_consistent(priv->pdev, sizeof(*ring) * entries, &dma); |
505 | if (!ring || (unsigned long)ring & 0xFF) { | 504 | if (!ring || (unsigned long)ring & 0xFF) { |
506 | printk(KERN_ERR "%s: Cannot allocate TX ring (prio = %d)\n", | 505 | wiphy_err(dev->wiphy, "cannot allocate tx ring (prio = %d)\n", |
507 | wiphy_name(dev->wiphy), prio); | 506 | prio); |
508 | return -ENOMEM; | 507 | return -ENOMEM; |
509 | } | 508 | } |
510 | 509 | ||
@@ -569,8 +568,7 @@ static int rtl8180_start(struct ieee80211_hw *dev) | |||
569 | ret = request_irq(priv->pdev->irq, rtl8180_interrupt, | 568 | ret = request_irq(priv->pdev->irq, rtl8180_interrupt, |
570 | IRQF_SHARED, KBUILD_MODNAME, dev); | 569 | IRQF_SHARED, KBUILD_MODNAME, dev); |
571 | if (ret) { | 570 | if (ret) { |
572 | printk(KERN_ERR "%s: failed to register IRQ handler\n", | 571 | wiphy_err(dev->wiphy, "failed to register irq handler\n"); |
573 | wiphy_name(dev->wiphy)); | ||
574 | goto err_free_rings; | 572 | goto err_free_rings; |
575 | } | 573 | } |
576 | 574 | ||
@@ -1107,9 +1105,8 @@ static int __devinit rtl8180_probe(struct pci_dev *pdev, | |||
1107 | goto err_iounmap; | 1105 | goto err_iounmap; |
1108 | } | 1106 | } |
1109 | 1107 | ||
1110 | printk(KERN_INFO "%s: hwaddr %pM, %s + %s\n", | 1108 | wiphy_info(dev->wiphy, "hwaddr %pm, %s + %s\n", |
1111 | wiphy_name(dev->wiphy), mac_addr, | 1109 | mac_addr, chip_name, priv->rf->name); |
1112 | chip_name, priv->rf->name); | ||
1113 | 1110 | ||
1114 | return 0; | 1111 | return 0; |
1115 | 1112 | ||
diff --git a/drivers/net/wireless/rtl818x/rtl8187_dev.c b/drivers/net/wireless/rtl818x/rtl8187_dev.c index 891b8490e349..5738a55c1b06 100644 --- a/drivers/net/wireless/rtl818x/rtl8187_dev.c +++ b/drivers/net/wireless/rtl818x/rtl8187_dev.c | |||
@@ -573,7 +573,7 @@ static int rtl8187_cmd_reset(struct ieee80211_hw *dev) | |||
573 | } while (--i); | 573 | } while (--i); |
574 | 574 | ||
575 | if (!i) { | 575 | if (!i) { |
576 | printk(KERN_ERR "%s: Reset timeout!\n", wiphy_name(dev->wiphy)); | 576 | wiphy_err(dev->wiphy, "reset timeout!\n"); |
577 | return -ETIMEDOUT; | 577 | return -ETIMEDOUT; |
578 | } | 578 | } |
579 | 579 | ||
@@ -589,8 +589,7 @@ static int rtl8187_cmd_reset(struct ieee80211_hw *dev) | |||
589 | } while (--i); | 589 | } while (--i); |
590 | 590 | ||
591 | if (!i) { | 591 | if (!i) { |
592 | printk(KERN_ERR "%s: eeprom reset timeout!\n", | 592 | wiphy_err(dev->wiphy, "eeprom reset timeout!\n"); |
593 | wiphy_name(dev->wiphy)); | ||
594 | return -ETIMEDOUT; | 593 | return -ETIMEDOUT; |
595 | } | 594 | } |
596 | 595 | ||
@@ -1527,9 +1526,9 @@ static int __devinit rtl8187_probe(struct usb_interface *intf, | |||
1527 | mutex_init(&priv->conf_mutex); | 1526 | mutex_init(&priv->conf_mutex); |
1528 | skb_queue_head_init(&priv->b_tx_status.queue); | 1527 | skb_queue_head_init(&priv->b_tx_status.queue); |
1529 | 1528 | ||
1530 | printk(KERN_INFO "%s: hwaddr %pM, %s V%d + %s, rfkill mask %d\n", | 1529 | wiphy_info(dev->wiphy, "hwaddr %pm, %s v%d + %s, rfkill mask %d\n", |
1531 | wiphy_name(dev->wiphy), mac_addr, | 1530 | mac_addr, chip_name, priv->asic_rev, priv->rf->name, |
1532 | chip_name, priv->asic_rev, priv->rf->name, priv->rfkill_mask); | 1531 | priv->rfkill_mask); |
1533 | 1532 | ||
1534 | #ifdef CONFIG_RTL8187_LEDS | 1533 | #ifdef CONFIG_RTL8187_LEDS |
1535 | eeprom_93cx6_read(&eeprom, 0x3F, ®); | 1534 | eeprom_93cx6_read(&eeprom, 0x3F, ®); |
diff --git a/drivers/net/wireless/rtl818x/rtl8187_rtl8225.c b/drivers/net/wireless/rtl818x/rtl8187_rtl8225.c index a09819386a1e..fd96f9112322 100644 --- a/drivers/net/wireless/rtl818x/rtl8187_rtl8225.c +++ b/drivers/net/wireless/rtl818x/rtl8187_rtl8225.c | |||
@@ -366,8 +366,8 @@ static void rtl8225_rf_init(struct ieee80211_hw *dev) | |||
366 | rtl8225_write(dev, 0x02, 0x044d); | 366 | rtl8225_write(dev, 0x02, 0x044d); |
367 | msleep(100); | 367 | msleep(100); |
368 | if (!(rtl8225_read(dev, 6) & (1 << 7))) | 368 | if (!(rtl8225_read(dev, 6) & (1 << 7))) |
369 | printk(KERN_WARNING "%s: RF Calibration Failed! %x\n", | 369 | wiphy_warn(dev->wiphy, "rf calibration failed! %x\n", |
370 | wiphy_name(dev->wiphy), rtl8225_read(dev, 6)); | 370 | rtl8225_read(dev, 6)); |
371 | } | 371 | } |
372 | 372 | ||
373 | rtl8225_write(dev, 0x0, 0x127); | 373 | rtl8225_write(dev, 0x0, 0x127); |
@@ -735,8 +735,8 @@ static void rtl8225z2_rf_init(struct ieee80211_hw *dev) | |||
735 | rtl8225_write(dev, 0x02, 0x044D); | 735 | rtl8225_write(dev, 0x02, 0x044D); |
736 | msleep(100); | 736 | msleep(100); |
737 | if (!(rtl8225_read(dev, 6) & (1 << 7))) | 737 | if (!(rtl8225_read(dev, 6) & (1 << 7))) |
738 | printk(KERN_WARNING "%s: RF Calibration Failed! %x\n", | 738 | wiphy_warn(dev->wiphy, "rf calibration failed! %x\n", |
739 | wiphy_name(dev->wiphy), rtl8225_read(dev, 6)); | 739 | rtl8225_read(dev, 6)); |
740 | } | 740 | } |
741 | 741 | ||
742 | msleep(200); | 742 | msleep(200); |