]> git.sur5r.net Git - u-boot/commit
nand: Fix nand info for no device
authorTony Lindgren <tony@atomide.com>
Mon, 29 Aug 2016 16:11:43 +0000 (09:11 -0700)
committerScott Wood <oss@buserror.net>
Thu, 1 Sep 2016 22:30:25 +0000 (17:30 -0500)
commit4004a81828c72311f9c310c38d903b3f6638465d
treef7ca138a7dd0542b8bd1be227f0f993b15f5cd3f
parent91395b5d4ebb07bf6488058f0ba37256856816f6
nand: Fix nand info for no device

Looks like we have few more places where we're testing for
nand_info[i]->name. We can now use just test for nand_info[i]
instead.

This fixes a data abort on devices with no NAND when doing
nand info.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
cmd/nand.c