Переглянути джерело

[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 роки тому
джерело
коміт
e51ef7912c
1 змінених файлів з 1 додано та 1 видалено
  1. 1
    1
      src/drivers/net/natsemi.c

+ 1
- 1
src/drivers/net/natsemi.c Переглянути файл

@@ -270,7 +270,7 @@ static void natsemi_reset (struct net_device *netdev)
270 270
         wcsr = inl (np->ioaddr + WOLCmd) & WCSR_RESET_SAVE;
271 271
 
272 272
         /* RFCR */
273
-        rfcr = readl (np->ioaddr + RxFilterAddr) & RFCR_RESET_SAVE;
273
+        rfcr = inl (np->ioaddr + RxFilterAddr) & RFCR_RESET_SAVE;
274 274
 
275 275
         /* PMATCH */
276 276
         for (i = 0; i < 3; i++) {

Завантаження…
Відмінити
Зберегти