[TRIVIAL PATCH] Correctly print MAC address of BMAC
Pavel Roskin
proski at gnu.org
Sun Mar 21 06:43:34 EST 2004
On Sat, 20 Mar 2004, Pavel Roskin wrote:
> Somehow the loop to print the address was moved before the code that
> prints the rest of the line. The attached patch fixes that.
Sorry, forgot the patch.
--
Regards,
Pavel Roskin
-------------- next part --------------
--- linux.orig/drivers/net/bmac.c
+++ linux/drivers/net/bmac.c
@@ -1312,10 +1312,6 @@ static int __devinit bmac_probe(struct m
bmwrite(dev, INTDISABLE, DisableAll);
rev = addr[0] == 0 && addr[1] == 0xA0;
- for (j = 0; j < 6; ++j) {
- dev->dev_addr[j] = rev? bitrev(addr[j]): addr[j];
- printk("%c%.2x", (j? ':': ' '), dev->dev_addr[j]);
- }
/* Enable chip without interrupts for now */
bmac_enable_and_reset_chip(dev);
@@ -1380,6 +1376,10 @@ static int __devinit bmac_probe(struct m
}
printk(KERN_INFO "%s: BMAC%s at", dev->name, (is_bmac_plus? "+": ""));
+ for (j = 0; j < 6; ++j) {
+ dev->dev_addr[j] = rev? bitrev(addr[j]): addr[j];
+ printk("%c%.2x", (j? ':': ' '), dev->dev_addr[j]);
+ }
XXDEBUG((", base_addr=%#0lx", dev->base_addr));
printk("\n");
More information about the Linuxppc-dev
mailing list