summaryrefslogtreecommitdiff
path: root/drivers/spi/cadence_qspi.c
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2015-01-08 13:50:38 -0500
committerTom Rini <trini@ti.com>2015-01-08 13:50:38 -0500
commitf10d86d3fff9f53723a404b3794cca98a785ce6a (patch)
treeac3ba29d5b79ef0d00734c677320211771631782 /drivers/spi/cadence_qspi.c
parent906d6fe3033910a5eca72ef6fc9b47a957b113e5 (diff)
parentadc0fabfd9662fa690e866332cd4277351f991c4 (diff)
downloadu-boot-imx-f10d86d3fff9f53723a404b3794cca98a785ce6a.zip
u-boot-imx-f10d86d3fff9f53723a404b3794cca98a785ce6a.tar.gz
u-boot-imx-f10d86d3fff9f53723a404b3794cca98a785ce6a.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-spi
Diffstat (limited to 'drivers/spi/cadence_qspi.c')
-rw-r--r--drivers/spi/cadence_qspi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/cadence_qspi.c b/drivers/spi/cadence_qspi.c
index fa95b19..98ae3b8 100644
--- a/drivers/spi/cadence_qspi.c
+++ b/drivers/spi/cadence_qspi.c
@@ -297,7 +297,7 @@ static int cadence_spi_ofdata_to_platdata(struct udevice *bus)
/* All other paramters are embedded in the child node */
subnode = fdt_first_subnode(blob, node);
- if (!subnode) {
+ if (subnode < 0) {
printf("Error: subnode with SPI flash config missing!\n");
return -ENODEV;
}