Date: Tue, 14 Jul 2015 19:11:17 +0000 (UTC) From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r285551 - head/sys/dev/ofw Message-ID: <201507141911.t6EJBHNH080691@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507141911.t6EJBHNH080691>