Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi Remove the block where the default address spac...



details:   https://anonhg.NetBSD.org/src/rev/f9da1c91ee54
branches:  trunk
changeset: 754097:f9da1c91ee54
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Tue Apr 20 04:57:04 2010 +0000

description:
Remove the block where the default address space handlers were manually
installed via AcpiInstallAddressSpaceHandler(). This was already commented
out because ACPICA does this for us when ACPI_NO_ADDRESS_SPACE_INIT is not
specified when calling AcpiEnableSubsystem().

diffstat:

 sys/dev/acpi/acpi.c |  29 ++---------------------------
 1 files changed, 2 insertions(+), 27 deletions(-)

diffs (50 lines):

diff -r a27a795da271 -r f9da1c91ee54 sys/dev/acpi/acpi.c
--- a/sys/dev/acpi/acpi.c       Tue Apr 20 04:53:22 2010 +0000
+++ b/sys/dev/acpi/acpi.c       Tue Apr 20 04:57:04 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi.c,v 1.178 2010/04/20 04:53:22 jruoho Exp $        */
+/*     $NetBSD: acpi.c,v 1.179 2010/04/20 04:57:04 jruoho Exp $        */
 
 /*-
  * Copyright (c) 2003, 2007 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.178 2010/04/20 04:53:22 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.179 2010/04/20 04:57:04 jruoho Exp $");
 
 #include "opt_acpi.h"
 #include "opt_pcifixup.h"
@@ -304,31 +304,6 @@
 
        acpi_unmap_rsdt(rsdt);
 
-#if notyet
-       /*
-        * Install the default address space handlers.
-        */
-       func = "AcpiInstallAddressSpaceHandler()";
-
-       rv = AcpiInstallAddressSpaceHandler(ACPI_ROOT_OBJECT,
-           ACPI_ADR_SPACE_SYSTEM_MEMORY, ACPI_DEFAULT_HANDLER, NULL, NULL);
-
-       if (ACPI_FAILURE(rv))
-               goto fail;
-
-       rv = AcpiInstallAddressSpaceHandler(ACPI_ROOT_OBJECT,
-           ACPI_ADR_SPACE_SYSTEM_IO, ACPI_DEFAULT_HANDLER, NULL, NULL);
-
-       if (ACPI_FAILURE(rv))
-               goto fail;
-
-       rv = AcpiInstallAddressSpaceHandler(ACPI_ROOT_OBJECT,
-           ACPI_ADR_SPACE_PCI_CONFIG, ACPI_DEFAULT_HANDLER, NULL, NULL);
-
-       if (ACPI_FAILURE(rv))
-               goto fail;
-#endif
-
        rv = AcpiEnableSubsystem(~(ACPI_NO_HARDWARE_INIT|ACPI_NO_ACPI_ENABLE));
 
        if (ACPI_FAILURE(rv)) {



Home | Main Index | Thread Index | Old Index