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
This commit is contained in:
parent
579481b4f5
commit
d0f9972f1c
1 changed files with 2 additions and 2 deletions
|
@ -2876,13 +2876,13 @@
|
||||||
+static inline u32
|
+static inline u32
|
||||||
+ar231x_read_reg(u32 reg)
|
+ar231x_read_reg(u32 reg)
|
||||||
+{
|
+{
|
||||||
+ return __raw_readl((u32 *)KSEG1ADDR(reg));
|
+ return __raw_readl((void __iomem *)KSEG1ADDR(reg));
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+static inline void
|
+static inline void
|
||||||
+ar231x_write_reg(u32 reg, u32 val)
|
+ar231x_write_reg(u32 reg, u32 val)
|
||||||
+{
|
+{
|
||||||
+ __raw_writel(val, (u32 *)KSEG1ADDR(reg));
|
+ __raw_writel(val, (void __iomem *)KSEG1ADDR(reg));
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+static inline u32
|
+static inline u32
|
||||||
|
|
Loading…
Reference in a new issue