diff options
Diffstat (limited to 'drivers/net/tc35815.c')
-rw-r--r-- | drivers/net/tc35815.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/drivers/net/tc35815.c b/drivers/net/tc35815.c index df20cafff7dd..c666448fc7e3 100644 --- a/drivers/net/tc35815.c +++ b/drivers/net/tc35815.c | |||
@@ -865,7 +865,6 @@ static int __devinit tc35815_init_one(struct pci_dev *pdev, | |||
865 | struct net_device *dev; | 865 | struct net_device *dev; |
866 | struct tc35815_local *lp; | 866 | struct tc35815_local *lp; |
867 | int rc; | 867 | int rc; |
868 | DECLARE_MAC_BUF(mac); | ||
869 | 868 | ||
870 | static int printed_version; | 869 | static int printed_version; |
871 | if (!printed_version++) { | 870 | if (!printed_version++) { |
@@ -942,11 +941,11 @@ static int __devinit tc35815_init_one(struct pci_dev *pdev, | |||
942 | goto err_out; | 941 | goto err_out; |
943 | 942 | ||
944 | memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len); | 943 | memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len); |
945 | printk(KERN_INFO "%s: %s at 0x%lx, %s, IRQ %d\n", | 944 | printk(KERN_INFO "%s: %s at 0x%lx, %pM, IRQ %d\n", |
946 | dev->name, | 945 | dev->name, |
947 | chip_info[ent->driver_data].name, | 946 | chip_info[ent->driver_data].name, |
948 | dev->base_addr, | 947 | dev->base_addr, |
949 | print_mac(mac, dev->dev_addr), | 948 | dev->dev_addr, |
950 | dev->irq); | 949 | dev->irq); |
951 | 950 | ||
952 | rc = tc_mii_init(dev); | 951 | rc = tc_mii_init(dev); |
@@ -1288,12 +1287,9 @@ panic_queues(struct net_device *dev) | |||
1288 | 1287 | ||
1289 | static void print_eth(const u8 *add) | 1288 | static void print_eth(const u8 *add) |
1290 | { | 1289 | { |
1291 | DECLARE_MAC_BUF(mac); | ||
1292 | |||
1293 | printk(KERN_DEBUG "print_eth(%p)\n", add); | 1290 | printk(KERN_DEBUG "print_eth(%p)\n", add); |
1294 | printk(KERN_DEBUG " %s =>", print_mac(mac, add + 6)); | 1291 | printk(KERN_DEBUG " %pM => %pM : %02x%02x\n", |
1295 | printk(KERN_CONT " %s : %02x%02x\n", | 1292 | add + 6, add, add[12], add[13]); |
1296 | print_mac(mac, add), add[12], add[13]); | ||
1297 | } | 1293 | } |
1298 | 1294 | ||
1299 | static int tc35815_tx_full(struct net_device *dev) | 1295 | static int tc35815_tx_full(struct net_device *dev) |
@@ -2153,13 +2149,12 @@ static void tc35815_set_cam_entry(struct net_device *dev, int index, unsigned ch | |||
2153 | int cam_index = index * 6; | 2149 | int cam_index = index * 6; |
2154 | u32 cam_data; | 2150 | u32 cam_data; |
2155 | u32 saved_addr; | 2151 | u32 saved_addr; |
2156 | DECLARE_MAC_BUF(mac); | ||
2157 | 2152 | ||
2158 | saved_addr = tc_readl(&tr->CAM_Adr); | 2153 | saved_addr = tc_readl(&tr->CAM_Adr); |
2159 | 2154 | ||
2160 | if (netif_msg_hw(lp)) | 2155 | if (netif_msg_hw(lp)) |
2161 | printk(KERN_DEBUG "%s: CAM %d: %s\n", | 2156 | printk(KERN_DEBUG "%s: CAM %d: %pM\n", |
2162 | dev->name, index, print_mac(mac, addr)); | 2157 | dev->name, index, addr); |
2163 | if (index & 1) { | 2158 | if (index & 1) { |
2164 | /* read modify write */ | 2159 | /* read modify write */ |
2165 | tc_writel(cam_index - 2, &tr->CAM_Adr); | 2160 | tc_writel(cam_index - 2, &tr->CAM_Adr); |