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>
/* All other paramters are embedded in the child node */
subnode = fdt_first_subnode(blob, node);
/* All other paramters are embedded in the child node */
subnode = fdt_first_subnode(blob, node);
printf("Error: subnode with SPI flash config missing!\n");
return -ENODEV;
}
printf("Error: subnode with SPI flash config missing!\n");
return -ENODEV;
}