]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] Fix an offset error when reading the CS89x0 ADD_PORT register
authorGeorge G. Davis <gdavis@mvista.com>
Thu, 16 Nov 2006 19:50:14 +0000 (14:50 -0500)
committerJeff Garzik <jeff@garzik.org>
Thu, 30 Nov 2006 11:15:08 +0000 (06:15 -0500)
Fix an offset error when reading the CS89x0 ADD_PORT register.

Signed-off-by: George G. Davis
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/cs89x0.c

index 4ffc9b44a8e13509e0c693e24bced26090a7cda8..dec70c2b374a775bb94f27c234948d15b57e6128 100644 (file)
@@ -588,10 +588,10 @@ cs89x0_probe1(struct net_device *dev, int ioaddr, int modular)
                                goto out2;
                        }
        }
-       printk(KERN_DEBUG "PP_addr at %x[%x]: 0x%x\n",
-                       ioaddr, ADD_PORT, readword(ioaddr, ADD_PORT));
 
        ioaddr &= ~3;
+       printk(KERN_DEBUG "PP_addr at %x[%x]: 0x%x\n",
+                       ioaddr, ADD_PORT, readword(ioaddr, ADD_PORT));
        writeword(ioaddr, ADD_PORT, PP_ChipID);
 
        tmp = readword(ioaddr, DATA_PORT);