aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/mvme147.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2007-10-03 20:59:30 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:51:42 -0400
commit0795af5729b18218767fab27c44b1384f72dc9ad (patch)
tree67c16df84aa6ec219340b8ea1b5cfb0e8150a216 /drivers/net/mvme147.c
parent95ea36275f3c9a1d3d04c217b4b576c657c4e70e (diff)
[NET]: Introduce and use print_mac() and DECLARE_MAC_BUF()
This is nicer than the MAC_FMT stuff. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mvme147.c')
-rw-r--r--drivers/net/mvme147.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/mvme147.c b/drivers/net/mvme147.c
index 837ad0f2b05d..86c9c06433cb 100644
--- a/drivers/net/mvme147.c
+++ b/drivers/net/mvme147.c
@@ -67,6 +67,7 @@ struct net_device * __init mvme147lance_probe(int unit)
67 u_long *addr; 67 u_long *addr;
68 u_long address; 68 u_long address;
69 int err; 69 int err;
70 DECLARE_MAC_BUF(mac);
70 71
71 if (!MACH_IS_MVME147 || called) 72 if (!MACH_IS_MVME147 || called)
72 return ERR_PTR(-ENODEV); 73 return ERR_PTR(-ENODEV);
@@ -101,12 +102,10 @@ struct net_device * __init mvme147lance_probe(int unit)
101 address=address>>8; 102 address=address>>8;
102 dev->dev_addr[3]=address&0xff; 103 dev->dev_addr[3]=address&0xff;
103 104
104 printk("%s: MVME147 at 0x%08lx, irq %d, Hardware Address %02x:%02x:%02x:%02x:%02x:%02x\n", 105 printk("%s: MVME147 at 0x%08lx, irq %d, "
105 dev->name, dev->base_addr, MVME147_LANCE_IRQ, 106 "Hardware Address %s\n",
106 dev->dev_addr[0], 107 dev->name, dev->base_addr, MVME147_LANCE_IRQ,
107 dev->dev_addr[1], dev->dev_addr[2], 108 print_mac(mac, dev->dev_addr));
108 dev->dev_addr[3], dev->dev_addr[4],
109 dev->dev_addr[5]);
110 109
111 lp = (struct m147lance_private *)dev->priv; 110 lp = (struct m147lance_private *)dev->priv;
112 lp->ram = __get_dma_pages(GFP_ATOMIC, 3); /* 16K */ 111 lp->ram = __get_dma_pages(GFP_ATOMIC, 3); /* 16K */