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 also rest of the ACPI_DEVICE_POWER checks.



details:   https://anonhg.NetBSD.org/src/rev/4b87c6b7a3aa
branches:  trunk
changeset: 760629:4b87c6b7a3aa
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Sun Jan 09 16:15:25 2011 +0000

description:
Remove also rest of the ACPI_DEVICE_POWER checks.

diffstat:

 sys/dev/acpi/acpi_power.c |  17 ++---------------
 1 files changed, 2 insertions(+), 15 deletions(-)

diffs (52 lines):

diff -r e99bfb6a248a -r 4b87c6b7a3aa sys/dev/acpi/acpi_power.c
--- a/sys/dev/acpi/acpi_power.c Sun Jan 09 16:07:45 2011 +0000
+++ b/sys/dev/acpi/acpi_power.c Sun Jan 09 16:15:25 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_power.c,v 1.27 2011/01/09 14:56:06 jruoho Exp $ */
+/* $NetBSD: acpi_power.c,v 1.28 2011/01/09 16:15:25 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2009, 2010 The NetBSD Foundation, Inc.
@@ -56,7 +56,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_power.c,v 1.27 2011/01/09 14:56:06 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_power.c,v 1.28 2011/01/09 16:15:25 jruoho Exp $");
 
 #include <sys/param.h>
 #include <sys/kmem.h>
@@ -214,9 +214,6 @@
        if (ad == NULL)
                return;
 
-       if ((ad->ad_flags & ACPI_DEVICE_POWER) == 0)
-               return;
-
        /*
         * Remove all references in each resource.
         */
@@ -236,11 +233,6 @@
        if (ad == NULL)
                return false;
 
-       if ((ad->ad_flags & ACPI_DEVICE_POWER) == 0) {
-               rv = AE_SUPPORT;
-               goto fail;
-       }
-
        /*
         * As _PSC may be broken, first try to
         * retrieve the power state indirectly
@@ -356,11 +348,6 @@
        if (ad == NULL)
                return false;
 
-       if ((ad->ad_flags & ACPI_DEVICE_POWER) == 0) {
-               rv = AE_SUPPORT;
-               goto fail;
-       }
-
        if (state < ACPI_STATE_D0 || state > ACPI_STATE_D3) {
                rv = AE_BAD_PARAMETER;
                goto fail;



Home | Main Index | Thread Index | Old Index