[U-Boot] [PATCH] fastboot: nand: fix compile error

Peng Fan van.freenix at gmail.com
Mon Jun 20 09:15:22 CEST 2016


Error info "
common/fb_nand.c: In function 'fb_nand_lookup':
common/fb_nand.c:65:3: error: 'mtd' undeclared (first use in this function)
  *mtd = nand_info[dev->id->num];
     ^
"

Correct fb_nand_lookup parameter name to fix this issue.

Signed-off-by: Peng Fan <peng.fan at nxp.com>
Cc: Maxime Ripard <maxime.ripard at free-electrons.com>
Cc: Scott Wood <oss at buserror.net>
Cc: Tom Rini <trini at konsulko.com>
---
 common/fb_nand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/fb_nand.c b/common/fb_nand.c
index e55ea38..ae34f48 100644
--- a/common/fb_nand.c
+++ b/common/fb_nand.c
@@ -34,7 +34,7 @@ __weak int board_fastboot_write_partition_setup(char *name)
 }
 
 static int fb_nand_lookup(const char *partname, char *response,
-			  struct mtd_info **nand,
+			  struct mtd_info **mtd,
 			  struct part_info **part)
 {
 	struct mtd_device *dev;
-- 
2.6.2



More information about the U-Boot mailing list