Browse Source

[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>
tags/v1.0.0-rc1
Stefan Hajnoczi 14 years ago
parent
commit
e51ef7912c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/drivers/net/natsemi.c

+ 1
- 1
src/drivers/net/natsemi.c View File

270
         wcsr = inl (np->ioaddr + WOLCmd) & WCSR_RESET_SAVE;
270
         wcsr = inl (np->ioaddr + WOLCmd) & WCSR_RESET_SAVE;
271
 
271
 
272
         /* RFCR */
272
         /* RFCR */
273
-        rfcr = readl (np->ioaddr + RxFilterAddr) & RFCR_RESET_SAVE;
273
+        rfcr = inl (np->ioaddr + RxFilterAddr) & RFCR_RESET_SAVE;
274
 
274
 
275
         /* PMATCH */
275
         /* PMATCH */
276
         for (i = 0; i < 3; i++) {
276
         for (i = 0; i < 3; i++) {

Loading…
Cancel
Save