Module Name: src
Committed By: jmcneill
Date: Fri Jun 30 09:19:19 UTC 2017
Modified Files:
src/sys/arch/arm/vexpress: vexpress_sysreg.c
Log Message:
Use of_match_compatible instead of of_compatible
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/arm/vexpress/vexpress_sysreg.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/vexpress/vexpress_sysreg.c
diff -u src/sys/arch/arm/vexpress/vexpress_sysreg.c:1.2 src/sys/arch/arm/vexpress/vexpress_sysreg.c:1.3
--- src/sys/arch/arm/vexpress/vexpress_sysreg.c:1.2 Fri Jun 2 21:26:20 2017
+++ src/sys/arch/arm/vexpress/vexpress_sysreg.c Fri Jun 30 09:19:19 2017
@@ -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 <[email protected]>
@@ -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 @@ vexpress_sysreg_match(device_t parent, c
{
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