Also accept "ok" to enable a device, some vendor device trees use this when
they mean "okay"
This commit is contained in:
parent
339ce033d2
commit
f3856d8fcb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user