Module Name: src Committed By: thorpej Date: Wed Jan 27 04:55:42 UTC 2021
Modified Files: src/sys/dev/ofw: ofw_subr.c openfirm.h Log Message: G/C of_match_compatible(). To generate a diff of this commit: cvs rdiff -u -r1.54 -r1.55 src/sys/dev/ofw/ofw_subr.c cvs rdiff -u -r1.43 -r1.44 src/sys/dev/ofw/openfirm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/ofw/ofw_subr.c diff -u src/sys/dev/ofw/ofw_subr.c:1.54 src/sys/dev/ofw/ofw_subr.c:1.55 --- src/sys/dev/ofw/ofw_subr.c:1.54 Wed Jan 27 03:10:21 2021 +++ src/sys/dev/ofw/ofw_subr.c Wed Jan 27 04:55:42 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: ofw_subr.c,v 1.54 2021/01/27 03:10:21 thorpej Exp $ */ +/* $NetBSD: ofw_subr.c,v 1.55 2021/01/27 04:55:42 thorpej Exp $ */ /* * Copyright 1998 @@ -34,7 +34,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ofw_subr.c,v 1.54 2021/01/27 03:10:21 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ofw_subr.c,v 1.55 2021/01/27 04:55:42 thorpej Exp $"); #include <sys/param.h> #include <sys/device.h> @@ -130,18 +130,6 @@ of_compatible(int phandle, const char * } /* - * int of_match_compatible(phandle, strings) - * - * This function is equivalent to of_compatible(), and its use - * is deprecated. - */ -int -of_match_compatible(int phandle, const char * const *strings) -{ - return of_compatible(phandle, strings); -} - -/* * int of_compatible_match(phandle, compat_data) * * This routine searches an array of device_compatible_entry structures Index: src/sys/dev/ofw/openfirm.h diff -u src/sys/dev/ofw/openfirm.h:1.43 src/sys/dev/ofw/openfirm.h:1.44 --- src/sys/dev/ofw/openfirm.h:1.43 Wed Jan 27 03:10:21 2021 +++ src/sys/dev/ofw/openfirm.h Wed Jan 27 04:55:42 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: openfirm.h,v 1.43 2021/01/27 03:10:21 thorpej Exp $ */ +/* $NetBSD: openfirm.h,v 1.44 2021/01/27 04:55:42 thorpej Exp $ */ /* * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -106,7 +106,6 @@ int openfirmware(void *); struct device_compatible_entry; int of_compatible(int, const char * const *); -int of_match_compatible(int, const char * const *); int of_compatible_match(int, const struct device_compatible_entry *); const struct device_compatible_entry * of_compatible_lookup(int, const struct device_compatible_entry *);