Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/acpi Call acpi_device_register() as appropriate.



details:   https://anonhg.NetBSD.org/src/rev/207223326d68
branches:  trunk
changeset: 951517:207223326d68
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Feb 04 23:54:48 2021 +0000

description:
Call acpi_device_register() as appropriate.

diffstat:

 sys/arch/x86/acpi/acpi_machdep.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r db9ac5a69078 -r 207223326d68 sys/arch/x86/acpi/acpi_machdep.c
--- a/sys/arch/x86/acpi/acpi_machdep.c  Thu Feb 04 23:29:16 2021 +0000
+++ b/sys/arch/x86/acpi/acpi_machdep.c  Thu Feb 04 23:54:48 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_machdep.c,v 1.30 2020/05/02 16:44:35 bouyer Exp $ */
+/* $NetBSD: acpi_machdep.c,v 1.31 2021/02/04 23:54:48 thorpej Exp $ */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_machdep.c,v 1.30 2020/05/02 16:44:35 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_machdep.c,v 1.31 2021/02/04 23:54:48 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -603,6 +603,8 @@
        if (parent == NULL)
                return;
 
+       acpi_device_register(dev, aux);
+
        device_is_vga = device_is_a(dev, "vga") || device_is_a(dev, "genfb");
        device_is_pci = device_is_a(parent, "pci");
        device_is_isa = device_is_a(parent, "isa");



Home | Main Index | Thread Index | Old Index