Skip to content

Commit f26ca1d

Browse files
Toshi Kanirafaeljw
authored andcommitted
ACPI / PCI / hotplug: Avoid warning when _ADR not present
acpiphp_enumerate_slots() walks ACPI namenamespace under a PCI host bridge with callback register_slot(). register_slot() evaluates _ADR for all the device objects and emits a warning message for any error. Some platforms have _HID device objects (such as HPET and IPMI), which trigger unnecessary warning messages. This patch avoids emitting a warning message when a target device object does not have _ADR. Signed-off-by: Toshi Kani <[email protected]> Cc: 3.12+ <[email protected]> # 3.12+ Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 6ce4eac commit f26ca1d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/pci/hotplug/acpiphp_glue.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,9 @@ static acpi_status register_slot(acpi_handle handle, u32 lvl, void *data,
279279

280280
status = acpi_evaluate_integer(handle, "_ADR", NULL, &adr);
281281
if (ACPI_FAILURE(status)) {
282-
acpi_handle_warn(handle, "can't evaluate _ADR (%#x)\n", status);
282+
if (status != AE_NOT_FOUND)
283+
acpi_handle_warn(handle,
284+
"can't evaluate _ADR (%#x)\n", status);
283285
return AE_OK;
284286
}
285287

0 commit comments

Comments
 (0)