diff options
author | Stefan Hajnoczi <stefanha@gmail.com> | 2010-01-25 08:28:37 +0000 |
---|---|---|
committer | Marty Connor <mdc@etherboot.org> | 2010-01-25 16:58:18 -0500 |
commit | e51ef7912cd17994081c51d558f902247b1e004a (patch) | |
tree | bd6c96ec15fc608f2b1498d334a33675e61d18ce | |
parent | 112a3f2de281a2afb23ced2082d555720de7c9b0 (diff) | |
download | ipxe-e51ef7912cd17994081c51d558f902247b1e004a.tar.gz |
[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>
-rw-r--r-- | src/drivers/net/natsemi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/net/natsemi.c b/src/drivers/net/natsemi.c index 8ca6271cf..db3f3209e 100644 --- a/src/drivers/net/natsemi.c +++ b/src/drivers/net/natsemi.c @@ -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++) { |