Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi Adjust previous slightly.



details:   https://anonhg.NetBSD.org/src/rev/614dba68420d
branches:  trunk
changeset: 760446:614dba68420d
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Wed Jan 05 08:08:47 2011 +0000

description:
Adjust previous slightly.

diffstat:

 sys/dev/acpi/acpi.c |  15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)

diffs (39 lines):

diff -r 9e934d9f2371 -r 614dba68420d sys/dev/acpi/acpi.c
--- a/sys/dev/acpi/acpi.c       Wed Jan 05 07:58:04 2011 +0000
+++ b/sys/dev/acpi/acpi.c       Wed Jan 05 08:08:47 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi.c,v 1.226 2011/01/05 07:58:04 jruoho Exp $        */
+/*     $NetBSD: acpi.c,v 1.227 2011/01/05 08:08:47 jruoho Exp $        */
 
 /*-
  * Copyright (c) 2003, 2007 The NetBSD Foundation, Inc.
@@ -100,7 +100,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.226 2011/01/05 07:58:04 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.227 2011/01/05 08:08:47 jruoho Exp $");
 
 #include "opt_acpi.h"
 #include "opt_pcifixup.h"
@@ -1035,16 +1035,13 @@
                                continue;
                }
 
-               /*
-                * Handled internally.
-                */
                if (di->Type == ACPI_TYPE_POWER)
                        continue;
 
-               /*
-                * Skip ignored HIDs.
-                */
-               if (acpi_match_hid(di, acpi_ignored_ids))
+               if (acpi_match_hid(di, acpi_early_ids) != 0)
+                       continue;
+
+               if (acpi_match_hid(di, acpi_ignored_ids) != 0)
                        continue;
 
                aa.aa_node = ad;



Home | Main Index | Thread Index | Old Index