]> Pileus Git - ~andy/linux/commit
ACPI / PCI / hotplug: Avoid warning when _ADR not present
authorToshi Kani <toshi.kani@hp.com>
Wed, 27 Nov 2013 20:33:09 +0000 (13:33 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 28 Nov 2013 13:19:29 +0000 (14:19 +0100)
commitf26ca1d699e8b54a50d9faf82327d3c2072aaedd
treed8444e9a286f7d726beac85fe85f637dc999788a
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae
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 <toshi.kani@hp.com>
Cc: 3.12+ <stable@vger.kernel.org> # 3.12+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/hotplug/acpiphp_glue.c