Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/vexpress Use of_match_compatible instead of of_...



details:   https://anonhg.NetBSD.org/src/rev/fd04fc77e79e
branches:  trunk
changeset: 354817:fd04fc77e79e
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Fri Jun 30 09:19:19 2017 +0000

description:
Use of_match_compatible instead of of_compatible

diffstat:

 sys/arch/arm/vexpress/vexpress_sysreg.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8cac1111b055 -r fd04fc77e79e sys/arch/arm/vexpress/vexpress_sysreg.c
--- a/sys/arch/arm/vexpress/vexpress_sysreg.c   Fri Jun 30 09:17:05 2017 +0000
+++ b/sys/arch/arm/vexpress/vexpress_sysreg.c   Fri Jun 30 09:19:19 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vexpress_sysreg.c,v 1.2 2017/06/02 21:26:20 jmcneill Exp $ */
+/* $NetBSD: vexpress_sysreg.c,v 1.3 2017/06/30 09:19:19 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vexpress_sysreg.c,v 1.2 2017/06/02 21:26:20 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vexpress_sysreg.c,v 1.3 2017/06/30 09:19:19 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -100,7 +100,7 @@
 {
        struct fdt_attach_args * const faa = aux;
 
-       return of_compatible(faa->faa_phandle, compatible) >= 0;
+       return of_match_compatible(faa->faa_phandle, compatible);
 }
 
 static void



Home | Main Index | Thread Index | Old Index