mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 21:21:37 +00:00
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>
This commit is contained in:
parent
94bcd6b0ac
commit
2fea4f5add
1 changed files with 4 additions and 2 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue