mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-20 08:54:43 +02:00
ar71xx: fix ar724x_pci_wr{,_nf} helpers
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20277 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
78b9f1dc6f
commit
2dce994012
@ -363,6 +363,7 @@ static inline void ar724x_pci_wr(unsigned reg, u32 val)
|
|||||||
|
|
||||||
base = ioremap_nocache(AR724X_PCI_CTRL_BASE, AR724X_PCI_CTRL_SIZE);
|
base = ioremap_nocache(AR724X_PCI_CTRL_BASE, AR724X_PCI_CTRL_SIZE);
|
||||||
__raw_writel(val, base + reg);
|
__raw_writel(val, base + reg);
|
||||||
|
(void) __raw_readl(base + reg);
|
||||||
iounmap(base);
|
iounmap(base);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -371,6 +372,7 @@ static inline void ar724x_pci_wr_nf(unsigned reg, u32 val)
|
|||||||
void __iomem *base;
|
void __iomem *base;
|
||||||
|
|
||||||
base = ioremap_nocache(AR724X_PCI_CTRL_BASE, AR724X_PCI_CTRL_SIZE);
|
base = ioremap_nocache(AR724X_PCI_CTRL_BASE, AR724X_PCI_CTRL_SIZE);
|
||||||
|
__raw_writel(val, base + reg);
|
||||||
iounmap(base);
|
iounmap(base);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user