aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/acpi/scan.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index 119c94093a13..7c26fed0bdf0 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -1051,13 +1051,15 @@ acpi_bus_add (
1051 /* 1051 /*
1052 * Status 1052 * Status
1053 * ------ 1053 * ------
1054 * See if the device is present. We always assume that non-Device() 1054 * See if the device is present. We always assume that non-Device
1055 * objects (e.g. thermal zones, power resources, processors, etc.) are 1055 * and non-Processor objects (e.g. thermal zones, power resources,
1056 * present, functioning, etc. (at least when parent object is present). 1056 * etc.) are present, functioning, etc. (at least when parent object
1057 * Note that _STA has a different meaning for some objects (e.g. 1057 * is present). Note that _STA has a different meaning for some
1058 * power resources) so we need to be careful how we use it. 1058 * objects (e.g. power resources) so we need to be careful how we use
1059 * it.
1059 */ 1060 */
1060 switch (type) { 1061 switch (type) {
1062 case ACPI_BUS_TYPE_PROCESSOR:
1061 case ACPI_BUS_TYPE_DEVICE: 1063 case ACPI_BUS_TYPE_DEVICE:
1062 result = acpi_bus_get_status(device); 1064 result = acpi_bus_get_status(device);
1063 if (ACPI_FAILURE(result) || !device->status.present) { 1065 if (ACPI_FAILURE(result) || !device->status.present) {