]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/of/base.c
net: Print the module name as part of the watchdog message
[linux-2.6-omap-h63xx.git] / drivers / of / base.c
index 9bd7c4a31253a5d7349d5b2fd3cb383e826d9680..23ffb7c0caf24148277ddd19c7430b5c90fb6fcb 100644 (file)
@@ -65,6 +65,9 @@ struct property *of_find_property(const struct device_node *np,
 {
        struct property *pp;
 
+       if (!np)
+               return NULL;
+
        read_lock(&devtree_lock);
        for (pp = np->properties; pp != 0; pp = pp->next) {
                if (of_prop_cmp(pp->name, name) == 0) {