Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[natsemi] Convert stray mmio readl() to pio inl()
This driver uses programmed I/O to access hardware registers.  There is
a stray memory-mapped I/O read on a programmed I/O address.  Perhaps
this is an artifact of porting the driver.  Fix this by converting it to
programmed I/O.

Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Marty Connor <mdc@etherboot.org>
  • Loading branch information
stefanha authored and Marty Connor committed Jan 25, 2010
1 parent 112a3f2 commit e51ef79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/net/natsemi.c
Expand Up @@ -270,7 +270,7 @@ static void natsemi_reset (struct net_device *netdev)
wcsr = inl (np->ioaddr + WOLCmd) & WCSR_RESET_SAVE;

/* RFCR */
rfcr = readl (np->ioaddr + RxFilterAddr) & RFCR_RESET_SAVE;
rfcr = inl (np->ioaddr + RxFilterAddr) & RFCR_RESET_SAVE;

/* PMATCH */
for (i = 0; i < 3; i++) {
Expand Down

0 comments on commit e51ef79

Please sign in to comment.