summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acpi
diff options
context:
space:
mode:
authoriwasaki <iwasaki@FreeBSD.org>2000-08-29 20:30:54 +0000
committeriwasaki <iwasaki@FreeBSD.org>2000-08-29 20:30:54 +0000
commita8d8728b12d7dd28175710de3a5d2467698b0bf9 (patch)
tree5b8971f3594809db906d81c367e075f00e77be3d /usr.sbin/acpi
parentbf91a5cf437757e5720c378ba89a45dbe6f838ac (diff)
downloadFreeBSD-src-a8d8728b12d7dd28175710de3a5d2467698b0bf9.zip
FreeBSD-src-a8d8728b12d7dd28175710de3a5d2467698b0bf9.tar.gz
A lot of changes on acpi driver code.
- The "Osd*" stuff went away from acpi driver code, use the bus_space functions directly instead. - Fix minor english bugs. acpi_registers_input -> acpi_register_input acpi_registers_output -> acpi_register_output - Remove all magic numbers for the sleeping states. We now have #defines for these. - NULL is treated the same as the return from aml_get_rootname in aml_find_from_namespace(). Suggested by: msmith Thanks mike!
Diffstat (limited to 'usr.sbin/acpi')
-rw-r--r--usr.sbin/acpi/amldb/aml/aml_name.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/acpi/amldb/aml/aml_name.c b/usr.sbin/acpi/amldb/aml/aml_name.c
index 6cc0f6c..04da36e 100644
--- a/usr.sbin/acpi/amldb/aml/aml_name.c
+++ b/usr.sbin/acpi/amldb/aml/aml_name.c
@@ -175,7 +175,11 @@ aml_apply_foreach_found_objects(struct aml_name *start, char *name,
va_list ap;
shallow = 0;
- parent = start;
+ if (start == NULL) {
+ parent = &rootname;
+ } else {
+ parent = start;
+ }
if (name[0] == '\\') {
name++;
parent = &rootname;
OpenPOWER on IntegriCloud