Merge remote-tracking branch 'grant/devicetree/next' into for-3.14

This commit is contained in:
Rob Herring
2014-01-23 08:23:04 -06:00
3 changed files with 80 additions and 0 deletions

View File

@@ -415,6 +415,9 @@ static int __of_device_is_available(const struct device_node *device)
const char *status;
int statlen;
if (!device)
return 0;
status = __of_get_property(device, "status", &statlen);
if (status == NULL)
return 1;