diff options
Diffstat (limited to 'drivers/net/tokenring/ibmtr.c')
-rw-r--r-- | drivers/net/tokenring/ibmtr.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/net/tokenring/ibmtr.c b/drivers/net/tokenring/ibmtr.c index e494c63bfbd9..ad978982eee4 100644 --- a/drivers/net/tokenring/ibmtr.c +++ b/drivers/net/tokenring/ibmtr.c | |||
@@ -389,7 +389,6 @@ static int __devinit ibmtr_probe1(struct net_device *dev, int PIOaddr) | |||
389 | unsigned long timeout; | 389 | unsigned long timeout; |
390 | static int version_printed; | 390 | static int version_printed; |
391 | #endif | 391 | #endif |
392 | DECLARE_MAC_BUF(mac); | ||
393 | 392 | ||
394 | /* Query the adapter PIO base port which will return | 393 | /* Query the adapter PIO base port which will return |
395 | * indication of where MMIO was placed. We also have a | 394 | * indication of where MMIO was placed. We also have a |
@@ -703,8 +702,7 @@ static int __devinit ibmtr_probe1(struct net_device *dev, int PIOaddr) | |||
703 | channel_def[cardpresent - 1], adapter_def(ti->adapter_type)); | 702 | channel_def[cardpresent - 1], adapter_def(ti->adapter_type)); |
704 | DPRINTK("using irq %d, PIOaddr %hx, %dK shared RAM.\n", | 703 | DPRINTK("using irq %d, PIOaddr %hx, %dK shared RAM.\n", |
705 | irq, PIOaddr, ti->mapped_ram_size / 2); | 704 | irq, PIOaddr, ti->mapped_ram_size / 2); |
706 | DPRINTK("Hardware address : %s\n", | 705 | DPRINTK("Hardware address : %pM\n", dev->dev_addr); |
707 | print_mac(mac, dev->dev_addr)); | ||
708 | if (ti->page_mask) | 706 | if (ti->page_mask) |
709 | DPRINTK("Shared RAM paging enabled. " | 707 | DPRINTK("Shared RAM paging enabled. " |
710 | "Page size: %uK Shared Ram size %dK\n", | 708 | "Page size: %uK Shared Ram size %dK\n", |
@@ -1741,8 +1739,6 @@ static void tr_rx(struct net_device *dev) | |||
1741 | void __iomem *trhhdr = rbuf + offsetof(struct rec_buf, data); | 1739 | void __iomem *trhhdr = rbuf + offsetof(struct rec_buf, data); |
1742 | u8 saddr[6]; | 1740 | u8 saddr[6]; |
1743 | u8 daddr[6]; | 1741 | u8 daddr[6]; |
1744 | DECLARE_MAC_BUF(mac); | ||
1745 | DECLARE_MAC_BUF(mac2); | ||
1746 | int i; | 1742 | int i; |
1747 | for (i = 0 ; i < 6 ; i++) | 1743 | for (i = 0 ; i < 6 ; i++) |
1748 | saddr[i] = readb(trhhdr + SADDR_OFST + i); | 1744 | saddr[i] = readb(trhhdr + SADDR_OFST + i); |
@@ -1750,9 +1746,9 @@ static void tr_rx(struct net_device *dev) | |||
1750 | daddr[i] = readb(trhhdr + DADDR_OFST + i); | 1746 | daddr[i] = readb(trhhdr + DADDR_OFST + i); |
1751 | DPRINTK("Probably non-IP frame received.\n"); | 1747 | DPRINTK("Probably non-IP frame received.\n"); |
1752 | DPRINTK("ssap: %02X dsap: %02X " | 1748 | DPRINTK("ssap: %02X dsap: %02X " |
1753 | "saddr: %s daddr: %$s\n", | 1749 | "saddr: %pM daddr: %pM\n", |
1754 | readb(llc + SSAP_OFST), readb(llc + DSAP_OFST), | 1750 | readb(llc + SSAP_OFST), readb(llc + DSAP_OFST), |
1755 | print_mac(mac, saddr), print_mac(mac2, daddr)); | 1751 | saddr, daddr); |
1756 | } | 1752 | } |
1757 | #endif | 1753 | #endif |
1758 | 1754 | ||