Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/nvidia Fix of_search_compatible usage



details:   https://anonhg.NetBSD.org/src/rev/3b6ff3fcc50e
branches:  trunk
changeset: 355257:3b6ff3fcc50e
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Fri Jul 21 18:25:25 2017 +0000

description:
Fix of_search_compatible usage

diffstat:

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

diffs (27 lines):

diff -r 86d262eb8d73 -r 3b6ff3fcc50e sys/arch/arm/nvidia/tegra_soctherm.c
--- a/sys/arch/arm/nvidia/tegra_soctherm.c      Fri Jul 21 16:39:20 2017 +0000
+++ b/sys/arch/arm/nvidia/tegra_soctherm.c      Fri Jul 21 18:25:25 2017 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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 @@
        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;



Home | Main Index | Thread Index | Old Index