From f3856d8fcb79386ed0c7f302cd2149a65036de88 Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Tue, 14 Jul 2015 19:11:16 +0000 Subject: [PATCH] Also accept "ok" to enable a device, some vendor device trees use this when they mean "okay" --- sys/dev/ofw/ofw_bus_subr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/ofw/ofw_bus_subr.c b/sys/dev/ofw/ofw_bus_subr.c index 233675d8722..448f7caedfa 100644 --- a/sys/dev/ofw/ofw_bus_subr.c +++ b/sys/dev/ofw/ofw_bus_subr.c @@ -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);