diff options
Diffstat (limited to 'drivers/acpi/acpi_memhotplug.c')
-rw-r--r-- | drivers/acpi/acpi_memhotplug.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c index c26172671fd8..e65628a03085 100644 --- a/drivers/acpi/acpi_memhotplug.c +++ b/drivers/acpi/acpi_memhotplug.c | |||
@@ -44,11 +44,6 @@ MODULE_AUTHOR("Naveen B S <naveen.b.s@intel.com>"); | |||
44 | MODULE_DESCRIPTION("Hotplug Mem Driver"); | 44 | MODULE_DESCRIPTION("Hotplug Mem Driver"); |
45 | MODULE_LICENSE("GPL"); | 45 | MODULE_LICENSE("GPL"); |
46 | 46 | ||
47 | /* ACPI _STA method values */ | ||
48 | #define ACPI_MEMORY_STA_PRESENT (0x00000001UL) | ||
49 | #define ACPI_MEMORY_STA_ENABLED (0x00000002UL) | ||
50 | #define ACPI_MEMORY_STA_FUNCTIONAL (0x00000008UL) | ||
51 | |||
52 | /* Memory Device States */ | 47 | /* Memory Device States */ |
53 | #define MEMORY_INVALID_STATE 0 | 48 | #define MEMORY_INVALID_STATE 0 |
54 | #define MEMORY_POWER_ON_STATE 1 | 49 | #define MEMORY_POWER_ON_STATE 1 |
@@ -204,9 +199,9 @@ static int acpi_memory_check_device(struct acpi_memory_device *mem_device) | |||
204 | * Check for device status. Device should be | 199 | * Check for device status. Device should be |
205 | * present/enabled/functioning. | 200 | * present/enabled/functioning. |
206 | */ | 201 | */ |
207 | if (!((current_status & ACPI_MEMORY_STA_PRESENT) | 202 | if (!((current_status & ACPI_STA_DEVICE_PRESENT) |
208 | && (current_status & ACPI_MEMORY_STA_ENABLED) | 203 | && (current_status & ACPI_STA_DEVICE_ENABLED) |
209 | && (current_status & ACPI_MEMORY_STA_FUNCTIONAL))) | 204 | && (current_status & ACPI_STA_DEVICE_FUNCTIONING))) |
210 | return -ENODEV; | 205 | return -ENODEV; |
211 | 206 | ||
212 | return 0; | 207 | return 0; |
@@ -286,7 +281,7 @@ static int acpi_memory_powerdown_device(struct acpi_memory_device *mem_device) | |||
286 | return -ENODEV; | 281 | return -ENODEV; |
287 | 282 | ||
288 | /* Check for device status. Device should be disabled */ | 283 | /* Check for device status. Device should be disabled */ |
289 | if (current_status & ACPI_MEMORY_STA_ENABLED) | 284 | if (current_status & ACPI_STA_DEVICE_ENABLED) |
290 | return -EINVAL; | 285 | return -EINVAL; |
291 | 286 | ||
292 | return 0; | 287 | return 0; |