spi: cadence_qspi: Fix checking return value of fdt_first_subnode()
authorAxel Lin <axel.lin@ingics.com>
Wed, 7 Jan 2015 01:54:56 +0000 (09:54 +0800)
committerJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Wed, 7 Jan 2015 07:00:54 +0000 (12:30 +0530)
commit1dc7d00f2783991387fe715d61b50fe7b40fd30a
tree547851d6f5b81401ab0705bfb88b4f9ae481e001
parentd87cbeccc54da2d39e1363e423953d8e24fb2008
spi: cadence_qspi: Fix checking return value of fdt_first_subnode()

fdt_first_subnode() returns -FDT_ERR_NOTFOUND if no subnode found.
0 is supposed to be a valid offset returns from fdt_first_subnode().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
drivers/spi/cadence_qspi.c