Module Name: src Committed By: jruoho Date: Sun Jan 9 14:56:07 UTC 2011
Modified Files: src/sys/dev/acpi: acpi_power.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 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.26 src/sys/dev/acpi/acpi_power.c:1.27 --- src/sys/dev/acpi/acpi_power.c:1.26 Thu Jan 6 18:57:22 2011 +++ src/sys/dev/acpi/acpi_power.c Sun Jan 9 14:56:06 2011 @@ -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; }