From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Mon, 29 Aug 2016 17:59:05 -0500 Subject: [U-Boot] [PATCH] nand: Fix nand info for no device In-Reply-To: <20160829161142.pxdykje7okehasge@atomide.com> References: <20160829161142.pxdykje7okehasge@atomide.com> Message-ID: <1472511545.13245.41.camel@buserror.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, 2016-08-29 at 09:11 -0700, Tony Lindgren wrote: > 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 > --- > ?cmd/nand.c | 6 +++--- > ?1 file changed, 3 insertions(+), 3 deletions(-) I also see a few instances of this in drivers/dfu/dfu_nand.c and drivers/mtd/nand/omap_gpmc.c. -Scott