Skip to contentSkip to conversation

Fix an offset error when reading the CS89x0 ADD_PORT register

PATCH New George G. Davis 1 participant 1 message Nov 16, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix an offset error when reading the CS89x0 ADD_PORT register

Fix an offset error when reading the CS89x0 ADD_PORT register.

Signed-off-by George G. Davis

---

drivers/net/cs89x0.c +2 -2
Index: linux-2.6/drivers/net/cs89x0.c
===================================================================
@@ -588,10 +588,10 @@ cs89x0_probe1(struct net_device *dev, in
 				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);