mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue