diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-02-10 13:44:20 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-02-10 13:44:20 +0100 |
commit | 0a8e5c3d5f0f4929761e6a5bef5358f0ccd8810c (patch) | |
tree | 59a88b789ac1fb6387901940832f314adc44ed6a /lib/vsprintf.c | |
parent | b28a960c42fcd9cfc987441fa6d1c1a471f0f9ed (diff) |
ACPI / dock: Use acpi_device_enumerated() to check if dock is present
After commit 202317a573b2 (ACPI / scan: Add acpi_device objects for
all device nodes in the namespace) acpi_bus_get_device() will always
return 0 for dock devices in dock_notify(), so the dock station
docking code under ACPI_NOTIFY_DEVICE_CHECK will never be executed
and docking will not work as a result of that.
Fix the problem by making dock_notify() use acpi_device_enumerated()
to check the presence of the device instead of checking the return
value of acpi_bus_get_device().
Fixes: 202317a573b2 (ACPI / scan: Add acpi_device objects for all device nodes in the namespace)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'lib/vsprintf.c')
0 files changed, 0 insertions, 0 deletions