diff options
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/acpi_memhotplug.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c index b12946ccd135..d882bf87fa96 100644 --- a/drivers/acpi/acpi_memhotplug.c +++ b/drivers/acpi/acpi_memhotplug.c | |||
@@ -71,8 +71,8 @@ static struct acpi_driver acpi_memory_device_driver = { | |||
71 | struct acpi_memory_device { | 71 | struct acpi_memory_device { |
72 | acpi_handle handle; | 72 | acpi_handle handle; |
73 | unsigned int state; /* State of the memory device */ | 73 | unsigned int state; /* State of the memory device */ |
74 | unsigned short cache_attribute; /* memory cache attribute */ | 74 | unsigned short caching; /* memory cache attribute */ |
75 | unsigned short read_write_attribute; /* memory read/write attribute */ | 75 | unsigned short write_protect; /* memory read/write attribute */ |
76 | u64 start_addr; /* Memory Range start physical addr */ | 76 | u64 start_addr; /* Memory Range start physical addr */ |
77 | u64 end_addr; /* Memory Range end physical addr */ | 77 | u64 end_addr; /* Memory Range end physical addr */ |
78 | }; | 78 | }; |
@@ -97,10 +97,10 @@ acpi_memory_get_device_resources(struct acpi_memory_device *mem_device) | |||
97 | if (ACPI_SUCCESS(status)) { | 97 | if (ACPI_SUCCESS(status)) { |
98 | if (address64.resource_type == ACPI_MEMORY_RANGE) { | 98 | if (address64.resource_type == ACPI_MEMORY_RANGE) { |
99 | /* Populate the structure */ | 99 | /* Populate the structure */ |
100 | mem_device->cache_attribute = | 100 | mem_device->caching = |
101 | address64.attribute.memory.cache_attribute; | 101 | address64.info.mem.caching; |
102 | mem_device->read_write_attribute = | 102 | mem_device->write_protect = |
103 | address64.attribute.memory.read_write_attribute; | 103 | address64.info.mem.write_protect; |
104 | mem_device->start_addr = address64.minimum; | 104 | mem_device->start_addr = address64.minimum; |
105 | mem_device->end_addr = address64.maximum; | 105 | mem_device->end_addr = address64.maximum; |
106 | } | 106 | } |
@@ -250,7 +250,6 @@ static int acpi_memory_disable_device(struct acpi_memory_device *mem_device) | |||
250 | int result; | 250 | int result; |
251 | u64 start = mem_device->start_addr; | 251 | u64 start = mem_device->start_addr; |
252 | u64 len = mem_device->end_addr - start + 1; | 252 | u64 len = mem_device->end_addr - start + 1; |
253 | unsigned long attr = mem_device->read_write_attribute; | ||
254 | 253 | ||
255 | ACPI_FUNCTION_TRACE("acpi_memory_disable_device"); | 254 | ACPI_FUNCTION_TRACE("acpi_memory_disable_device"); |
256 | 255 | ||