Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ofw Replace use of of_match_compatible().



details:   https://anonhg.NetBSD.org/src/rev/8f99c1fee904
branches:  trunk
changeset: 980186:8f99c1fee904
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Jan 26 14:55:57 2021 +0000

description:
Replace use of of_match_compatible().

diffstat:

 sys/dev/ofw/ofw_subr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2074e1cdc95d -r 8f99c1fee904 sys/dev/ofw/ofw_subr.c
--- a/sys/dev/ofw/ofw_subr.c    Tue Jan 26 14:55:34 2021 +0000
+++ b/sys/dev/ofw/ofw_subr.c    Tue Jan 26 14:55:57 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ofw_subr.c,v 1.52 2021/01/26 14:49:41 thorpej Exp $    */
+/*     $NetBSD: ofw_subr.c,v 1.53 2021/01/26 14:55:57 thorpej Exp $    */
 
 /*
  * Copyright 1998
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofw_subr.c,v 1.52 2021/01/26 14:49:41 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofw_subr.c,v 1.53 2021/01/26 14:55:57 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -334,7 +334,7 @@
        int child, ret;
 
        for (child = OF_child(node); child; child = OF_peer(child)) {
-               if (of_match_compatible(child, compatible) != 0)
+               if (of_compatible(child, compatible))
                        return child;
                ret = of_find_bycompat(child, str);
                if (ret != -1)



Home | Main Index | Thread Index | Old Index