diff options
author | Vasili Galka <vvv444@gmail.com> | 2014-08-26 17:50:29 +0300 |
---|---|---|
committer | Alexey Brodkin <abrodkin@synopsys.com> | 2014-08-26 18:54:02 +0400 |
commit | 2fea4f5addb40d7551ed754175acbec7f2750005 (patch) | |
tree | 00dd72fbb14c3bbd26ff3b70e4a387b4cf237036 | |
parent | 94bcd6b0ac110dfc4bac6ba355bcbab138360c32 (diff) | |
download | u-boot-imx-2fea4f5addb40d7551ed754175acbec7f2750005.zip u-boot-imx-2fea4f5addb40d7551ed754175acbec7f2750005.tar.gz u-boot-imx-2fea4f5addb40d7551ed754175acbec7f2750005.tar.bz2 |
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>
-rw-r--r-- | board/synopsys/axs101/nand.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/board/synopsys/axs101/nand.c b/board/synopsys/axs101/nand.c index c7f90c4..ff35286 100644 --- a/board/synopsys/axs101/nand.c +++ b/board/synopsys/axs101/nand.c @@ -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 */ |