Skip to content
Snippets Groups Projects
Commit 2fea4f5a authored by Vasili Galka's avatar Vasili Galka Committed by Alexey Brodkin
Browse files

axs101: Fix type mismatch warning


Initialization of pointer from integer shall be designated by explicit
type cast.

Signed-off-by: default avatarVasili Galka <vvv444@gmail.com>
Cc: Alexey Brodkin <alexey.brodkin@synopsys.com>
parent 94bcd6b0
No related branches found
No related tags found
No related merge requests found
......@@ -62,8 +62,10 @@ struct nand_bd {
uint32_t buffer_ptr1; /* DES3 */
};
#define NAND_REG_WRITE(r, v) writel(v, CONFIG_SYS_NAND_BASE + r)
#define NAND_REG_READ(r) readl(CONFIG_SYS_NAND_BASE + r)
#define NAND_REG_WRITE(r, v) \
writel(v, (volatile void __iomem *)(CONFIG_SYS_NAND_BASE + r))
#define NAND_REG_READ(r) \
readl((const volatile void __iomem *)(CONFIG_SYS_NAND_BASE + r))
static struct nand_bd *bd; /* DMA buffer descriptors */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment