2007-11-14 22:21:39

by Michael Wu

[permalink] [raw]
Subject: [PATCH] rtl8180: fix compilation with print_mac changes

This patch fixes compilation of rtl8180 after the print_mac changes.

Signed-off-by: Michael Wu <[email protected]>
---

drivers/net/wireless/rtl8180_dev.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/rtl8180_dev.c b/drivers/net/wireless/rtl8180_dev.c
index 517927d..620ebb1 100644
--- a/drivers/net/wireless/rtl8180_dev.c
+++ b/drivers/net/wireless/rtl8180_dev.c
@@ -727,6 +727,7 @@ static int __devinit rtl8180_probe(struct pci_dev *pdev,
const char *chip_name, *rf_name;
u32 reg;
u16 eeprom_val;
+ DECLARE_MAC_BUF(mac);

err = pci_enable_device(pdev);
if (err) {
@@ -939,8 +940,8 @@ static int __devinit rtl8180_probe(struct pci_dev *pdev,
goto err_iounmap;
}

- printk(KERN_INFO "%s: hwaddr " MAC_FMT ", %s + %s\n",
- wiphy_name(dev->wiphy), MAC_ARG(dev->wiphy->perm_addr),
+ printk(KERN_INFO "%s: hwaddr %s, %s + %s\n",
+ wiphy_name(dev->wiphy), print_mac(mac, dev->wiphy->perm_addr),
chip_name, rf_name);

return 0;