diff options
author | Tony Lindgren <tony@atomide.com> | 2016-08-24 16:46:32 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-08-26 21:04:58 (GMT) |
commit | 1cfce74fe5a2301ee9b384d9395ba95db930c9d6 (patch) | |
tree | 6c27f90d1e1a1f5c8eb06ba99a627638daf210fb /include/menu.h | |
parent | c21fc7e223ebad72735b9d02bcbd8878ae026fef (diff) | |
download | u-boot-1cfce74fe5a2301ee9b384d9395ba95db930c9d6.tar.xz |
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: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'include/menu.h')
0 files changed, 0 insertions, 0 deletions