Skip to content

Commit

Permalink
[PATCH] Fix an offset error when reading the CS89x0 ADD_PORT register
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
George G. Davis authored and Jeff Garzik committed Nov 30, 2006
1 parent 7bd54c8 commit 9e1402a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/cs89x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9e1402a

Please sign in to comment.