]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/micronas/vct/vct.h
MIPS: vct: fix I/O accessor calls
[people/ms/u-boot.git] / board / micronas / vct / vct.h
index 0a1c5fcb82930d0908154ea6d7a4eab5594c8409..67da6a8e730590b2167b2b3e259494baf83d3bae 100644 (file)
@@ -80,12 +80,14 @@ void vct_pin_mux_initialize(void);
  */
 static inline void reg_write(u32 addr, u32 data)
 {
-       __raw_writel(data, addr + REG_GLOBAL_START_ADDR);
+       void *reg = (void *)(addr + REG_GLOBAL_START_ADDR);
+       __raw_writel(data, reg);
 }
 
 static inline u32 reg_read(u32 addr)
 {
-       return __raw_readl(addr + REG_GLOBAL_START_ADDR);
+       const void *reg = (const void *)(addr + REG_GLOBAL_START_ADDR);
+       return __raw_readl(reg);
 }
 
 #endif /* _VCT_H */