Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/fdt If acpi_probe() falis, just panic now inste...



details:   https://anonhg.NetBSD.org/src/rev/ae678f11b9c0
branches:  trunk
changeset: 955035:ae678f11b9c0
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Tue Sep 15 10:33:58 2020 +0000

description:
If acpi_probe() falis, just panic now instead of failing mysteriously later.

diffstat:

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

diffs (27 lines):

diff -r 3948b3e7ebff -r ae678f11b9c0 sys/arch/arm/fdt/acpi_fdt.c
--- a/sys/arch/arm/fdt/acpi_fdt.c       Tue Sep 15 10:11:35 2020 +0000
+++ b/sys/arch/arm/fdt/acpi_fdt.c       Tue Sep 15 10:33:58 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_fdt.c,v 1.14 2020/01/17 17:06:33 jmcneill Exp $ */
+/* $NetBSD: acpi_fdt.c,v 1.15 2020/09/15 10:33:58 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -30,7 +30,7 @@
 #include "opt_efi.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_fdt.c,v 1.14 2020/01/17 17:06:33 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_fdt.c,v 1.15 2020/09/15 10:33:58 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -114,7 +114,7 @@
            &acpi_fdt_power_funcs);
 
        if (!acpi_probe())
-               aprint_error_dev(self, "failed to probe ACPI\n");
+               panic("ACPI subsystem failed to initialize");
 
        memset(&aa, 0, sizeof(aa));
 #if NPCI > 0



Home | Main Index | Thread Index | Old Index