]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/powerpc/kernel/prom_parse.c
Consolidate of_find_property
[karo-tx-linux.git] / arch / powerpc / kernel / prom_parse.c
index b5c96af955c639ce43ea1532423bebebf0a6b177..3786dcc8a7b62752cc51ddd3fae9dd085a2b3726 100644 (file)
@@ -24,7 +24,7 @@
 /* Max address size we deal with */
 #define OF_MAX_ADDR_CELLS      4
 #define OF_CHECK_COUNTS(na, ns)        ((na) > 0 && (na) <= OF_MAX_ADDR_CELLS && \
-                       (ns) > 0)
+                       (ns) >= 0)
 
 static struct of_bus *of_match_bus(struct device_node *np);
 static int __of_address_to_resource(struct device_node *dev,