ACPICA: Update default space handlers.
authorLv Zheng <lv.zheng@intel.com>
Thu, 31 Oct 2013 01:29:49 +0000 (09:29 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 31 Oct 2013 13:37:31 +0000 (14:37 +0100)
This patch adds code that is already in ACPICA upstream, so applying
it can help to reduce the source code differences between Linux and
ACPICA upstream.

This code fragment is only useful for ACPICA utilities and no
functional changes to the Linux kernel should result from it.

[rjw: Changelog]
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/exregion.c

index 303429b..9d28867 100644 (file)
@@ -400,6 +400,7 @@ acpi_ex_pci_config_space_handler(u32 function,
        switch (function) {
        case ACPI_READ:
 
+               *value = 0;
                status = acpi_os_read_pci_configuration(pci_id, pci_register,
                                                        value, bit_width);
                break;