Module Name: src
Committed By: thorpej
Date: Wed Jan 27 03:16:37 UTC 2021
Modified Files:
src/sys/arch/arm/samsung: exynos_platform.c
Log Message:
Rename of_match_compat_data() to of_compatible_match(). Similarly,
rename of_search_compatible() to of_compatible_lookup().
Standardize on of_compatible_match() for driver matching, and adapt
all call sites.
To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/arm/samsung/exynos_platform.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/samsung/exynos_platform.c
diff -u src/sys/arch/arm/samsung/exynos_platform.c:1.35 src/sys/arch/arm/samsung/exynos_platform.c:1.36
--- src/sys/arch/arm/samsung/exynos_platform.c:1.35 Wed Jan 27 02:01:53 2021
+++ src/sys/arch/arm/samsung/exynos_platform.c Wed Jan 27 03:16:37 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: exynos_platform.c,v 1.35 2021/01/27 02:01:53 thorpej Exp $ */
+/* $NetBSD: exynos_platform.c,v 1.36 2021/01/27 03:16:37 thorpej Exp $ */
/*-
* Copyright (c) 2017 Jared D. McNeill <[email protected]>
@@ -35,7 +35,7 @@
#include "ukbd.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exynos_platform.c,v 1.35 2021/01/27 02:01:53 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exynos_platform.c,v 1.36 2021/01/27 03:16:37 thorpej Exp $");
/*
@@ -208,7 +208,7 @@ exynos_platform_mpstart(void)
int (*mp_start)(void) = NULL;
const struct device_compatible_entry *cd =
- of_search_compatible(OF_finddevice("/"), mp_compat_data);
+ of_compatible_lookup(OF_finddevice("/"), mp_compat_data);
if (cd)
mp_start = cd->data;
@@ -339,7 +339,7 @@ exynos5_platform_bootstrap(void)
#if defined(MULTIPROCESSOR) && defined(EXYNOS5422_DISABLE_CA7_CLUSTER)
const struct device_compatible_entry *cd =
- of_search_compatible(OF_finddevice("/"), mp_compat_data);
+ of_compatible_lookup(OF_finddevice("/"), mp_compat_data);
if (cd && cd->data == exynos5800_mpstart) {
void *fdt_data = __UNCONST(fdtbus_get_data());
int cpu_off, cpus_off, len;