summaryrefslogtreecommitdiff
path: root/board/netvia
diff options
context:
space:
mode:
Diffstat (limited to 'board/netvia')
-rw-r--r--board/netvia/netvia.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/board/netvia/netvia.c b/board/netvia/netvia.c
index 9dd732b..db36b22 100644
--- a/board/netvia/netvia.c
+++ b/board/netvia/netvia.c
@@ -420,16 +420,13 @@ int board_pre_init(void)
#include <linux/mtd/nand.h>
-extern void nand_probe(ulong physadr);
+extern ulong nand_probe(ulong physadr);
extern struct nand_chip nand_dev_desc[CFG_MAX_NAND_DEVICE];
void nand_init(void)
{
- nand_probe(CFG_NAND_BASE);
- if (nand_dev_desc[0].ChipID != NAND_ChipID_UNKNOWN) {
- nand_dev_desc[0].name = "NetVia NAND flash";
- puts("NAND: ");
- print_size(nand_dev_desc[0].totlen, "\n");
- }
+ unsigned long totlen = nand_probe(CFG_NAND_BASE);
+
+ printf ("%4lu MB\n", totlen >> 20);
}
#endif