aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/base.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c
index f807d0edabf3..ba195fbce4c6 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -415,6 +415,9 @@ static int __of_device_is_available(const struct device_node *device)
415 const char *status; 415 const char *status;
416 int statlen; 416 int statlen;
417 417
418 if (!device)
419 return 0;
420
418 status = __of_get_property(device, "status", &statlen); 421 status = __of_get_property(device, "status", &statlen);
419 if (status == NULL) 422 if (status == NULL)
420 return 1; 423 return 1;