diff options
author | Lin Ming <ming.m.lin@intel.com> | 2009-11-12 21:06:08 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-11-24 21:31:10 -0500 |
commit | 2263576cfc6e8f6ab038126c3254404b9fcb1c33 (patch) | |
tree | 1c1bd06cc5d89978a23a19d549764d3dc8c7c6c4 /drivers/platform | |
parent | 7d5d05d0704127c9acd24090c14731c111bd0af1 (diff) |
ACPICA: Add post-order callback to acpi_walk_namespace
The existing interface only has a pre-order callback. This change
adds an additional parameter for a post-order callback which will
be more useful for bus scans. ACPICA BZ 779.
Also update the external calls to acpi_walk_namespace.
http://www.acpica.org/bugzilla/show_bug.cgi?id=779
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/intel_menlow.c | 2 | ||||
-rw-r--r-- | drivers/platform/x86/sony-laptop.c | 2 | ||||
-rw-r--r-- | drivers/platform/x86/thinkpad_acpi.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/platform/x86/intel_menlow.c b/drivers/platform/x86/intel_menlow.c index 29432a50be45..f0a90a6bf396 100644 --- a/drivers/platform/x86/intel_menlow.c +++ b/drivers/platform/x86/intel_menlow.c | |||
@@ -510,7 +510,7 @@ static int __init intel_menlow_module_init(void) | |||
510 | /* Looking for sensors in each ACPI thermal zone */ | 510 | /* Looking for sensors in each ACPI thermal zone */ |
511 | status = acpi_walk_namespace(ACPI_TYPE_THERMAL, ACPI_ROOT_OBJECT, | 511 | status = acpi_walk_namespace(ACPI_TYPE_THERMAL, ACPI_ROOT_OBJECT, |
512 | ACPI_UINT32_MAX, | 512 | ACPI_UINT32_MAX, |
513 | intel_menlow_register_sensor, NULL, NULL); | 513 | intel_menlow_register_sensor, NULL, NULL, NULL); |
514 | if (ACPI_FAILURE(status)) | 514 | if (ACPI_FAILURE(status)) |
515 | return -ENODEV; | 515 | return -ENODEV; |
516 | 516 | ||
diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c index a2a742c8ff7e..7a2cc8a5c975 100644 --- a/drivers/platform/x86/sony-laptop.c +++ b/drivers/platform/x86/sony-laptop.c | |||
@@ -1203,7 +1203,7 @@ static int sony_nc_add(struct acpi_device *device) | |||
1203 | 1203 | ||
1204 | if (debug) { | 1204 | if (debug) { |
1205 | status = acpi_walk_namespace(ACPI_TYPE_METHOD, sony_nc_acpi_handle, | 1205 | status = acpi_walk_namespace(ACPI_TYPE_METHOD, sony_nc_acpi_handle, |
1206 | 1, sony_walk_callback, NULL, NULL); | 1206 | 1, sony_walk_callback, NULL, NULL, NULL); |
1207 | if (ACPI_FAILURE(status)) { | 1207 | if (ACPI_FAILURE(status)) { |
1208 | printk(KERN_WARNING DRV_PFX "unable to walk acpi resources\n"); | 1208 | printk(KERN_WARNING DRV_PFX "unable to walk acpi resources\n"); |
1209 | result = -ENODEV; | 1209 | result = -ENODEV; |
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index d93108d148fc..22cb50fe2b2c 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c | |||
@@ -1087,7 +1087,7 @@ static int __init tpacpi_check_std_acpi_brightness_support(void) | |||
1087 | */ | 1087 | */ |
1088 | 1088 | ||
1089 | status = acpi_walk_namespace(ACPI_TYPE_METHOD, vid_handle, 3, | 1089 | status = acpi_walk_namespace(ACPI_TYPE_METHOD, vid_handle, 3, |
1090 | tpacpi_acpi_walk_find_bcl, NULL, | 1090 | tpacpi_acpi_walk_find_bcl, NULL, NULL, |
1091 | &bcl_ptr); | 1091 | &bcl_ptr); |
1092 | 1092 | ||
1093 | if (ACPI_SUCCESS(status) && bcl_levels > 2) { | 1093 | if (ACPI_SUCCESS(status) && bcl_levels > 2) { |