aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-03-18 19:18:36 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-03-18 19:18:36 +0000
commitca49e09c9acf546813e25755b57647e5d5b3ad8d (patch)
treec157f798ba76c448ef2603603f2168d8e6616a69 /target
parent0fd984fc4fdfb40dd291fecea66a0b50a82c0d51 (diff)
downloadupstream-ca49e09c9acf546813e25755b57647e5d5b3ad8d.tar.gz
upstream-ca49e09c9acf546813e25755b57647e5d5b3ad8d.tar.bz2
upstream-ca49e09c9acf546813e25755b57647e5d5b3ad8d.zip
ar71xx: fix ar724x_pci_wr{,_nf} helpers
SVN-Revision: 20277
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h
index e9e68f16df..1a1ec4ba1a 100644
--- a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h
+++ b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h
@@ -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);
__raw_writel(val, base + reg);
+ (void) __raw_readl(base + reg);
iounmap(base);
}
@@ -371,6 +372,7 @@ static inline void ar724x_pci_wr_nf(unsigned reg, u32 val)
void __iomem *base;
base = ioremap_nocache(AR724X_PCI_CTRL_BASE, AR724X_PCI_CTRL_SIZE);
+ __raw_writel(val, base + reg);
iounmap(base);
}