svn commit: r285551 - head/sys/dev/ofw

Andrew Turner andrew at FreeBSD.org
Tue Jul 14 19:11:18 UTC 2015


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);


More information about the svn-src-head mailing list