projects
/
openwrt
/
staging
/
lynxis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
579481b
)
atheros: use correct address space and pointer type for register access
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 17 Jul 2014 16:36:07 +0000
(16:36 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 17 Jul 2014 16:36:07 +0000
(16:36 +0000)
Make sparse happy :)
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 41686
target/linux/atheros/patches-3.10/100-board.patch
patch
|
blob
|
history
diff --git
a/target/linux/atheros/patches-3.10/100-board.patch
b/target/linux/atheros/patches-3.10/100-board.patch
index 36ad7c892520322f54edbb46766cac0c9cec91df..02ab9432d4279e59ab2230a2fa970d979b62799a 100644
(file)
--- 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