• Tony Lindgren's avatar
    nand: Fix set_dev checks for no device · 1cfce74f
    Tony Lindgren authored
    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: 's avatarTony Lindgren <tony@atomide.com>
    1cfce74f
Name
Last commit
Last update
Licenses Loading commit data...
api Loading commit data...
arch Loading commit data...
board Loading commit data...
cmd Loading commit data...
common Loading commit data...
configs Loading commit data...
disk Loading commit data...
doc Loading commit data...
drivers Loading commit data...
dts Loading commit data...
examples Loading commit data...
fs Loading commit data...
include Loading commit data...
lib Loading commit data...
net Loading commit data...
post Loading commit data...
scripts Loading commit data...
test Loading commit data...
tools Loading commit data...
.checkpatch.conf Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
config.mk Loading commit data...
snapshot.commit Loading commit data...