Skip to content
Snippets Groups Projects
Commit 1cfce74f authored by Tony Lindgren's avatar Tony Lindgren Committed by Tom Rini
Browse files

nand: Fix set_dev checks for no device


If we do nand device 0 command in u-boot on a device that has NAND support
enabled but no NAND chip, we can get data abort at least on omaps.

Fix the issue by replacing the check with nand_info[dev] as
suggested by Scott Wood. The check for name existed before because before
the array-to-pointer conversion there was no way to directly test
nand_info[dev] for emptiness.

Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent c21fc7e2
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment