projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'drm-patches' of master.kernel.org:/pub/scm/linux/kernel/git/airlied...
[powerpc.git]
/
drivers
/
acpi
/
container.c
diff --git
a/drivers/acpi/container.c
b/drivers/acpi/container.c
index
0930d94
..
0dd3bf7
100644
(file)
--- a/
drivers/acpi/container.c
+++ b/
drivers/acpi/container.c
@@
-49,8
+49,6
@@
MODULE_AUTHOR("Anil S Keshavamurthy");
MODULE_DESCRIPTION("ACPI container driver");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("ACPI container driver");
MODULE_LICENSE("GPL");
-#define ACPI_STA_PRESENT (0x00000001)
-
static int acpi_container_add(struct acpi_device *device);
static int acpi_container_remove(struct acpi_device *device, int type);
static int acpi_container_add(struct acpi_device *device);
static int acpi_container_remove(struct acpi_device *device, int type);
@@
-75,13
+73,13
@@
static int is_device_present(acpi_handle handle)
status = acpi_get_handle(handle, "_STA", &temp);
if (ACPI_FAILURE(status))
status = acpi_get_handle(handle, "_STA", &temp);
if (ACPI_FAILURE(status))
- return 1; /* _STA not found, ass
mu
e device present */
+ return 1; /* _STA not found, ass
um
e device present */
status = acpi_evaluate_integer(handle, "_STA", NULL, &sta);
if (ACPI_FAILURE(status))
return 0; /* Firmware error */
status = acpi_evaluate_integer(handle, "_STA", NULL, &sta);
if (ACPI_FAILURE(status))
return 0; /* Firmware error */
- return ((sta & ACPI_STA_
PRESENT) == ACPI_STA
_PRESENT);
+ return ((sta & ACPI_STA_
DEVICE_PRESENT) == ACPI_STA_DEVICE
_PRESENT);
}
/*******************************************************************/
}
/*******************************************************************/