Module Name: src
Committed By: jmcneill
Date: Fri Jul 21 18:25:25 UTC 2017
Modified Files:
src/sys/arch/arm/nvidia: tegra_soctherm.c
Log Message:
Fix of_search_compatible usage
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/arm/nvidia/tegra_soctherm.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/nvidia/tegra_soctherm.c
diff -u src/sys/arch/arm/nvidia/tegra_soctherm.c:1.5 src/sys/arch/arm/nvidia/tegra_soctherm.c:1.6
--- src/sys/arch/arm/nvidia/tegra_soctherm.c:1.5 Thu Jul 20 01:46:15 2017
+++ src/sys/arch/arm/nvidia/tegra_soctherm.c Fri Jul 21 18:25:25 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_soctherm.c,v 1.5 2017/07/20 01:46:15 jmcneill Exp $ */
+/* $NetBSD: tegra_soctherm.c,v 1.6 2017/07/21 18:25:25 jmcneill Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_soctherm.c,v 1.5 2017/07/20 01:46:15 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_soctherm.c,v 1.6 2017/07/21 18:25:25 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -213,7 +213,7 @@ tegra_soctherm_attach(device_t parent, d
aprint_naive("\n");
aprint_normal(": SOC_THERM\n");
- sc->sc_config = (const void *)of_search_compatible(phandle, compat_data);
+ sc->sc_config = (void *)of_search_compatible(phandle, compat_data)->data;
if (sc->sc_config == NULL) {
aprint_error_dev(self, "unsupported SoC\n");
return;