Commit 2fea4f5addb40d7551ed754175acbec7f2750005
Committed by
Alexey Brodkin
1 parent
94bcd6b0ac
Exists in
v2017.01-smarct4x
and in
37 other branches
axs101: Fix type mismatch warning
Initialization of pointer from integer shall be designated by explicit type cast. Signed-off-by: Vasili Galka <vvv444@gmail.com> Cc: Alexey Brodkin <alexey.brodkin@synopsys.com>
Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff
board/synopsys/axs101/nand.c
... | ... | @@ -62,8 +62,10 @@ |
62 | 62 | uint32_t buffer_ptr1; /* DES3 */ |
63 | 63 | }; |
64 | 64 | |
65 | -#define NAND_REG_WRITE(r, v) writel(v, CONFIG_SYS_NAND_BASE + r) | |
66 | -#define NAND_REG_READ(r) readl(CONFIG_SYS_NAND_BASE + r) | |
65 | +#define NAND_REG_WRITE(r, v) \ | |
66 | + writel(v, (volatile void __iomem *)(CONFIG_SYS_NAND_BASE + r)) | |
67 | +#define NAND_REG_READ(r) \ | |
68 | + readl((const volatile void __iomem *)(CONFIG_SYS_NAND_BASE + r)) | |
67 | 69 | |
68 | 70 | static struct nand_bd *bd; /* DMA buffer descriptors */ |
69 | 71 |