aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/hp-plus.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/hp-plus.c')
-rw-r--r--drivers/net/hp-plus.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/hp-plus.c b/drivers/net/hp-plus.c
index 8d4f810fa288..c2c4f49d7578 100644
--- a/drivers/net/hp-plus.c
+++ b/drivers/net/hp-plus.c
@@ -166,6 +166,7 @@ static int __init hpp_probe1(struct net_device *dev, int ioaddr)
166 const char name[] = "HP-PC-LAN+"; 166 const char name[] = "HP-PC-LAN+";
167 int mem_start; 167 int mem_start;
168 static unsigned version_printed; 168 static unsigned version_printed;
169 DECLARE_MAC_BUF(mac);
169 170
170 if (!request_region(ioaddr, HP_IO_EXTENT, DRV_NAME)) 171 if (!request_region(ioaddr, HP_IO_EXTENT, DRV_NAME))
171 return -EBUSY; 172 return -EBUSY;
@@ -180,7 +181,7 @@ static int __init hpp_probe1(struct net_device *dev, int ioaddr)
180 if (ei_debug && version_printed++ == 0) 181 if (ei_debug && version_printed++ == 0)
181 printk(version); 182 printk(version);
182 183
183 printk("%s: %s at %#3x,", dev->name, name, ioaddr); 184 printk("%s: %s at %#3x, ", dev->name, name, ioaddr);
184 185
185 /* Retrieve and checksum the station address. */ 186 /* Retrieve and checksum the station address. */
186 outw(MAC_Page, ioaddr + HP_PAGING); 187 outw(MAC_Page, ioaddr + HP_PAGING);
@@ -189,10 +190,11 @@ static int __init hpp_probe1(struct net_device *dev, int ioaddr)
189 unsigned char inval = inb(ioaddr + 8 + i); 190 unsigned char inval = inb(ioaddr + 8 + i);
190 dev->dev_addr[i] = inval; 191 dev->dev_addr[i] = inval;
191 checksum += inval; 192 checksum += inval;
192 printk(" %2.2x", inval);
193 } 193 }
194 checksum += inb(ioaddr + 14); 194 checksum += inb(ioaddr + 14);
195 195
196 printk("%s", print_mac(mac, dev->dev_addr));
197
196 if (checksum != 0xff) { 198 if (checksum != 0xff) {
197 printk(" bad checksum %2.2x.\n", checksum); 199 printk(" bad checksum %2.2x.\n", checksum);
198 retval = -ENODEV; 200 retval = -ENODEV;