Author: andrew
Date: Tue Jul 14 19:11:16 2015
New Revision: 285551
URL: https://svnweb.freebsd.org/changeset/base/285551

Log:
  Also accept "ok" to enable a device, some vendor device trees use this when
  they mean "okay"

Modified:
  head/sys/dev/ofw/ofw_bus_subr.c

Modified: head/sys/dev/ofw/ofw_bus_subr.c
==============================================================================
--- head/sys/dev/ofw/ofw_bus_subr.c     Tue Jul 14 18:53:24 2015        
(r285550)
+++ head/sys/dev/ofw/ofw_bus_subr.c     Tue Jul 14 19:11:16 2015        
(r285551)
@@ -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);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to