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 #if 0'ed acpi_disable().



details:   https://anonhg.NetBSD.org/src/rev/e483d7b734b5
branches:  trunk
changeset: 753965:e483d7b734b5
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Wed Apr 14 17:14:45 2010 +0000

description:
Remove the #if 0'ed acpi_disable().

diffstat:

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

diffs (45 lines):

diff -r 82a9d77990ad -r e483d7b734b5 sys/dev/acpi/acpi.c
--- a/sys/dev/acpi/acpi.c       Wed Apr 14 17:12:14 2010 +0000
+++ b/sys/dev/acpi/acpi.c       Wed Apr 14 17:14:45 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi.c,v 1.169 2010/04/14 17:12:14 jruoho Exp $        */
+/*     $NetBSD: acpi.c,v 1.170 2010/04/14 17:14:45 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.169 2010/04/14 17:12:14 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.170 2010/04/14 17:14:45 jruoho Exp $");
 
 #include "opt_acpi.h"
 #include "opt_pcifixup.h"
@@ -596,26 +596,6 @@
        return true;
 }
 
-#if 0
-/*
- * acpi_disable:
- *
- *     Disable ACPI.
- */
-static ACPI_STATUS
-acpi_disable(struct acpi_softc *sc)
-{
-       ACPI_STATUS rv = AE_OK;
-
-       if (acpi_active) {
-               rv = AcpiDisable();
-               if (ACPI_SUCCESS(rv))
-                       acpi_active = 0;
-       }
-       return rv;
-}
-#endif
-
 /*
  * Namespace scan.
  */



Home | Main Index | Thread Index | Old Index