Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/fdt sometimes status is "ok" instead of "okay", allo...
details: https://anonhg.NetBSD.org/src/rev/5407a4925a35
branches: trunk
changeset: 342326:5407a4925a35
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Wed Dec 16 19:33:16 2015 +0000
description:
sometimes status is "ok" instead of "okay", allow both
diffstat:
sys/dev/fdt/fdtbus.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 1f7724c4e74c -r 5407a4925a35 sys/dev/fdt/fdtbus.c
--- a/sys/dev/fdt/fdtbus.c Wed Dec 16 19:17:16 2015 +0000
+++ b/sys/dev/fdt/fdtbus.c Wed Dec 16 19:33:16 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdtbus.c,v 1.1 2015/12/13 17:30:40 jmcneill Exp $ */
+/* $NetBSD: fdtbus.c,v 1.2 2015/12/16 19:33:16 jmcneill Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdtbus.c,v 1.1 2015/12/13 17:30:40 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdtbus.c,v 1.2 2015/12/16 19:33:16 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -111,7 +111,8 @@
status = kmem_zalloc(len, KM_SLEEP);
alen = OF_getprop(child, "status", status, len);
KASSERT(alen == len);
- const bool okay_p = strcmp(status, "okay") == 0;
+ const bool okay_p = strcmp(status, "okay") == 0 ||
+ strcmp(status, "ok") == 0;
kmem_free(status, len);
if (!okay_p) {
continue;
Home |
Main Index |
Thread Index |
Old Index