diff options
| author | Len Brown <len.brown@intel.com> | 2007-04-28 23:12:03 -0400 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2007-04-28 23:12:03 -0400 |
| commit | fb16596997ded3e70d308bec58e32c1e2c5cf9b0 (patch) | |
| tree | 28939b49c26e51d2c22047ef2e07f4b1d6352bbb /drivers/acpi/container.c | |
| parent | f188291aec9b17ef7cec01db66b9cdb6fae26372 (diff) | |
| parent | afd3810d9b6b0d446a34e1d4e94f0cc020b00a14 (diff) | |
Pull misc-for-upstream into release branch
Diffstat (limited to 'drivers/acpi/container.c')
| -rw-r--r-- | drivers/acpi/container.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/acpi/container.c b/drivers/acpi/container.c index 0930d9413dfa..0dd3bf7c0ed1 100644 --- a/drivers/acpi/container.c +++ b/drivers/acpi/container.c | |||
| @@ -49,8 +49,6 @@ MODULE_AUTHOR("Anil S Keshavamurthy"); | |||
| 49 | MODULE_DESCRIPTION("ACPI container driver"); | 49 | MODULE_DESCRIPTION("ACPI container driver"); |
| 50 | MODULE_LICENSE("GPL"); | 50 | MODULE_LICENSE("GPL"); |
| 51 | 51 | ||
| 52 | #define ACPI_STA_PRESENT (0x00000001) | ||
| 53 | |||
| 54 | static int acpi_container_add(struct acpi_device *device); | 52 | static int acpi_container_add(struct acpi_device *device); |
| 55 | static int acpi_container_remove(struct acpi_device *device, int type); | 53 | static int acpi_container_remove(struct acpi_device *device, int type); |
| 56 | 54 | ||
| @@ -75,13 +73,13 @@ static int is_device_present(acpi_handle handle) | |||
| 75 | 73 | ||
| 76 | status = acpi_get_handle(handle, "_STA", &temp); | 74 | status = acpi_get_handle(handle, "_STA", &temp); |
| 77 | if (ACPI_FAILURE(status)) | 75 | if (ACPI_FAILURE(status)) |
| 78 | return 1; /* _STA not found, assmue device present */ | 76 | return 1; /* _STA not found, assume device present */ |
| 79 | 77 | ||
| 80 | status = acpi_evaluate_integer(handle, "_STA", NULL, &sta); | 78 | status = acpi_evaluate_integer(handle, "_STA", NULL, &sta); |
| 81 | if (ACPI_FAILURE(status)) | 79 | if (ACPI_FAILURE(status)) |
| 82 | return 0; /* Firmware error */ | 80 | return 0; /* Firmware error */ |
| 83 | 81 | ||
| 84 | return ((sta & ACPI_STA_PRESENT) == ACPI_STA_PRESENT); | 82 | return ((sta & ACPI_STA_DEVICE_PRESENT) == ACPI_STA_DEVICE_PRESENT); |
| 85 | } | 83 | } |
| 86 | 84 | ||
| 87 | /*******************************************************************/ | 85 | /*******************************************************************/ |
