Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (119 commits)
ACPI: don't pass handle for fixed hardware notifications
ACPI: remove null pointer checks in deferred execution path
ACPI: simplify deferred execution path
acerhdf: additional BIOS versions
acerhdf: convert to dev_pm_ops
acerhdf: fix fan control for AOA150 model
thermal: add missing Kconfig dependency
acpi: switch /proc/acpi/{debug_layer,debug_level} to seq_file
hp-wmi: fix rfkill memory leak on unload
ACPI: remove unnecessary #ifdef CONFIG_DMI
ACPI: linux/acpi.h should not include linux/dmi.h
hwmon driver for ACPI 4.0 power meters
topstar-laptop: add new driver for hotkeys support on Topstar N01
thinkpad_acpi: fix rfkill memory leak on unload
thinkpad-acpi: report brightness events when required
thinkpad-acpi: don't poll by default any of the reserved hotkeys
thinkpad-acpi: Fix procfs hotkey reset command
thinkpad-acpi: deprecate hotkey_bios_mask
thinkpad-acpi: hotkey poll fixes
thinkpad-acpi: be more strict when detecting a ThinkPad
...
This commit is contained in:
@@ -476,7 +476,6 @@ zx1_gart_probe (acpi_handle obj, u32 depth, void *context, void **ret)
|
||||
{
|
||||
acpi_handle handle, parent;
|
||||
acpi_status status;
|
||||
struct acpi_buffer buffer;
|
||||
struct acpi_device_info *info;
|
||||
u64 lba_hpa, sba_hpa, length;
|
||||
int match;
|
||||
@@ -488,13 +487,11 @@ zx1_gart_probe (acpi_handle obj, u32 depth, void *context, void **ret)
|
||||
/* Look for an enclosing IOC scope and find its CSR space */
|
||||
handle = obj;
|
||||
do {
|
||||
buffer.length = ACPI_ALLOCATE_LOCAL_BUFFER;
|
||||
status = acpi_get_object_info(handle, &buffer);
|
||||
status = acpi_get_object_info(handle, &info);
|
||||
if (ACPI_SUCCESS(status)) {
|
||||
/* TBD check _CID also */
|
||||
info = buffer.pointer;
|
||||
info->hardware_id.value[sizeof(info->hardware_id)-1] = '\0';
|
||||
match = (strcmp(info->hardware_id.value, "HWP0001") == 0);
|
||||
info->hardware_id.string[sizeof(info->hardware_id.length)-1] = '\0';
|
||||
match = (strcmp(info->hardware_id.string, "HWP0001") == 0);
|
||||
kfree(info);
|
||||
if (match) {
|
||||
status = hp_acpi_csr_space(handle, &sba_hpa, &length);
|
||||
|
||||
Reference in New Issue
Block a user