mirror of
https://github.com/xcat2/xNBA.git
synced 2025-02-02 12:01:50 +00:00
[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>
This commit is contained in:
parent
112a3f2de2
commit
e51ef7912c
@ -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++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user