Module Name:    src
Committed By:   jruoho
Date:           Sun Jan  9 16:15:25 UTC 2011

Modified Files:
        src/sys/dev/acpi: acpi_power.c

Log Message:
Remove also rest of the ACPI_DEVICE_POWER checks.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/acpi/acpi_power.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/acpi/acpi_power.c
diff -u src/sys/dev/acpi/acpi_power.c:1.27 src/sys/dev/acpi/acpi_power.c:1.28
--- src/sys/dev/acpi/acpi_power.c:1.27	Sun Jan  9 14:56:06 2011
+++ src/sys/dev/acpi/acpi_power.c	Sun Jan  9 16:15:25 2011
@@ -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;

Reply via email to