From: Rafael J. Wysocki Date: Sat, 15 Feb 2014 00:29:06 +0000 (+0100) Subject: ACPI / dock: Make 'docked' sysfs attribute work as documented X-Git-Tag: v3.14-rc4~17^2~2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab62f9cd7b5ecdf853f1612fe1e983cb7cbbac3e;p=pandora-kernel.git ACPI / dock: Make 'docked' sysfs attribute work as documented After recent ACPI core changes acpi_bus_get_device() will always succeed for dock station ACPI device objects, so show_docked() should not use that function's return value as an indicator of whether or not the dock device is present. Make it use acpi_device_enumerated() for this purpose. Fixes: 202317a573b2 (ACPI / scan: Add acpi_device objects for all device nodes in the namespace) Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed