[U-Boot-Users] [PATCH/review] Blackfin: kill conversion warnings in async nand driver
Mike Frysinger
vapier at gentoo.org
Wed Apr 9 08:33:19 CEST 2008
Add "fun" casts from defined integers to pointers so that we don't have
to see the ugly associated conversion warnings from gcc.
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
board/bf537-stamp/nand.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/board/bf537-stamp/nand.c b/board/bf537-stamp/nand.c
index 6ff0f4f..b6fa1a9 100644
--- a/board/bf537-stamp/nand.c
+++ b/board/bf537-stamp/nand.c
@@ -44,17 +44,17 @@ static void bfin_hwcontrol(struct mtd_info *mtd, int cmd)
switch (cmd) {
case NAND_CTL_SETCLE:
- this->IO_ADDR_W = CFG_NAND_BASE + BFIN_NAND_CLE;
+ this->IO_ADDR_W = (void *)CFG_NAND_BASE + BFIN_NAND_CLE;
break;
case NAND_CTL_CLRCLE:
- this->IO_ADDR_W = CFG_NAND_BASE;
+ this->IO_ADDR_W = (void *)CFG_NAND_BASE;
break;
case NAND_CTL_SETALE:
- this->IO_ADDR_W = CFG_NAND_BASE + BFIN_NAND_ALE;
+ this->IO_ADDR_W = (void *)CFG_NAND_BASE + BFIN_NAND_ALE;
break;
case NAND_CTL_CLRALE:
- this->IO_ADDR_W = CFG_NAND_BASE;
+ this->IO_ADDR_W = (void *)CFG_NAND_BASE;
break;
case NAND_CTL_SETNCE:
case NAND_CTL_CLRNCE:
--
1.5.4.4
More information about the U-Boot
mailing list