summaryrefslogtreecommitdiff
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
commitd0f9972f1c9d10bd9abc52a724e5f64182e1816c (patch)
treec02d03ba61a8e2177d7940d175a6a363e0b5f49d /target/linux/atheros
parent579481b4f53be4c5b56729a7f9f9384632312708 (diff)
downloadmtk-20170518-d0f9972f1c9d10bd9abc52a724e5f64182e1816c.zip
mtk-20170518-d0f9972f1c9d10bd9abc52a724e5f64182e1816c.tar.gz
mtk-20170518-d0f9972f1c9d10bd9abc52a724e5f64182e1816c.tar.bz2
atheros: use correct address space and pointer type for register access
Make sparse happy :) Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41686
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 36ad7c8..02ab943 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