Merge remote-tracking branch 'grant/devicetree/next' into for-3.14
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user