Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi We use config_defer(9) now when scanning power ...



details:   https://anonhg.NetBSD.org/src/rev/961c5541d81c
branches:  trunk
changeset: 760622:961c5541d81c
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Sun Jan 09 14:56:06 2011 +0000

description:
We use config_defer(9) now when scanning power resource and wake-up
capabilities, so do not fail in acpi_power_register() if ACPI_DEVICE_POWER is
not set in struct acpi_devnode::ad_flags.

diffstat:

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

diffs (33 lines):

diff -r df03814d4e0b -r 961c5541d81c sys/dev/acpi/acpi_power.c
--- a/sys/dev/acpi/acpi_power.c Sun Jan 09 14:49:39 2011 +0000
+++ b/sys/dev/acpi/acpi_power.c Sun Jan 09 14:56:06 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_power.c,v 1.26 2011/01/06 18:57:22 jruoho Exp $ */
+/* $NetBSD: acpi_power.c,v 1.27 2011/01/09 14:56:06 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.26 2011/01/06 18:57:22 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_power.c,v 1.27 2011/01/09 14:56:06 jruoho Exp $");
 
 #include <sys/param.h>
 #include <sys/kmem.h>
@@ -202,14 +202,6 @@
 bool
 acpi_power_register(ACPI_HANDLE hdl)
 {
-       struct acpi_devnode *ad = acpi_get_node(hdl);
-
-       if (ad == NULL)
-               return false;
-
-       if ((ad->ad_flags & ACPI_DEVICE_POWER) == 0)
-               return false;
-
        return true;
 }
 



Home | Main Index | Thread Index | Old Index