summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Hajnoczi2010-01-25 09:28:37 +0100
committerMarty Connor2010-01-25 22:58:18 +0100
commite51ef7912cd17994081c51d558f902247b1e004a (patch)
treebd6c96ec15fc608f2b1498d334a33675e61d18ce
parent[pxe] Introduce PXE exit hook for NBP chaining (diff)
downloadipxe-e51ef7912cd17994081c51d558f902247b1e004a.tar.gz
ipxe-e51ef7912cd17994081c51d558f902247b1e004a.tar.xz
ipxe-e51ef7912cd17994081c51d558f902247b1e004a.zip
[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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/net/natsemi.c b/src/drivers/net/natsemi.c
index 8ca6271c..db3f3209 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++) {