aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-07-17 16:36:07 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-07-17 16:36:07 +0000
commitfb557d90cc17015b5fb0875dbecd3907893c2ceb (patch)
treeb832cfec065ed3c8a3a36a88f7bf8397a1913880 /target/linux/atheros
parent75cfa4a0c2d44542862befaff32395a5ef5d9374 (diff)
downloadupstream-fb557d90cc17015b5fb0875dbecd3907893c2ceb.tar.gz
upstream-fb557d90cc17015b5fb0875dbecd3907893c2ceb.tar.bz2
upstream-fb557d90cc17015b5fb0875dbecd3907893c2ceb.zip
atheros: use correct address space and pointer type for register access
Make sparse happy :) Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41686 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros')
-rw-r--r--target/linux/atheros/patches-3.10/100-board.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/atheros/patches-3.10/100-board.patch b/target/linux/atheros/patches-3.10/100-board.patch
index 36ad7c8925..02ab9432d4 100644
--- a/target/linux/atheros/patches-3.10/100-board.patch
+++ b/target/linux/atheros/patches-3.10/100-board.patch
@@ -2876,13 +2876,13 @@
+static inline u32
+ar231x_read_reg(u32 reg)
+{
-+ return __raw_readl((u32 *)KSEG1ADDR(reg));
++ return __raw_readl((void __iomem *)KSEG1ADDR(reg));
+}
+
+static inline void
+ar231x_write_reg(u32 reg, u32 val)
+{
-+ __raw_writel(val, (u32 *)KSEG1ADDR(reg));
++ __raw_writel(val, (void __iomem *)KSEG1ADDR(reg));
+}
+
+static inline u32