aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpi_memhotplug.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/acpi_memhotplug.c')
-rw-r--r--drivers/acpi/acpi_memhotplug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c
index 98099de59b45..13687835c460 100644
--- a/drivers/acpi/acpi_memhotplug.c
+++ b/drivers/acpi/acpi_memhotplug.c
@@ -427,7 +427,7 @@ static int acpi_memory_device_remove(struct acpi_device *device, int type)
427 if (!device || !acpi_driver_data(device)) 427 if (!device || !acpi_driver_data(device))
428 return -EINVAL; 428 return -EINVAL;
429 429
430 mem_device = (struct acpi_memory_device *)acpi_driver_data(device); 430 mem_device = acpi_driver_data(device);
431 kfree(mem_device); 431 kfree(mem_device);
432 432
433 return 0; 433 return 0;