Also accept "ok" to enable a device, some vendor device trees use this when

they mean "okay"
This commit is contained in:
Andrew Turner 2015-07-14 19:11:16 +00:00
parent 339ce033d2
commit f3856d8fcb

View File

@ -170,7 +170,8 @@ ofw_bus_status_okay(device_t dev)
const char *status;
status = ofw_bus_get_status(dev);
if (status == NULL || strcmp(status, "okay") == 0)
if (status == NULL || strcmp(status, "okay") == 0 ||
strcmp(status, "ok") == 0)
return (1);
return (0);