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 <[EMAIL PROTECTED]>
---
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
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
U-Boot-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/u-boot-users