Author: nbd
Date: 2014-07-17 18:36:07 +0200 (Thu, 17 Jul 2014)
New Revision: 41686

Modified:
   trunk/target/linux/atheros/patches-3.10/100-board.patch
Log:
atheros: use correct address space and pointer type for register access

Make sparse happy :)

Signed-off-by: Sergey Ryazanov <[email protected]>

Modified: trunk/target/linux/atheros/patches-3.10/100-board.patch
===================================================================
--- trunk/target/linux/atheros/patches-3.10/100-board.patch     2014-07-17 
16:36:03 UTC (rev 41685)
+++ trunk/target/linux/atheros/patches-3.10/100-board.patch     2014-07-17 
16:36:07 UTC (rev 41686)
@@ -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
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to