diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-03-18 19:18:36 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-03-18 19:18:36 +0000 |
commit | afdd5b242348cf7ff186c43a99e156ba911f535e (patch) | |
tree | a6b3ac5bd045ee0fad78eea3be1f5aae223067cb /target/linux/ar71xx/files | |
parent | 98e306995ff0a2adf0e2267824af0cd50b93515a (diff) | |
download | upstream-afdd5b242348cf7ff186c43a99e156ba911f535e.tar.gz upstream-afdd5b242348cf7ff186c43a99e156ba911f535e.tar.bz2 upstream-afdd5b242348cf7ff186c43a99e156ba911f535e.zip |
ar71xx: fix ar724x_pci_wr{,_nf} helpers
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20277 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h | 2 |
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); } |