diff options
Diffstat (limited to 'drivers/acpi/acpi_memhotplug.c')
-rw-r--r-- | drivers/acpi/acpi_memhotplug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c index 6bcd9e8e7bcb..150112ae48ed 100644 --- a/drivers/acpi/acpi_memhotplug.c +++ b/drivers/acpi/acpi_memhotplug.c | |||
@@ -429,7 +429,7 @@ static int acpi_memory_device_remove(struct acpi_device *device, int type) | |||
429 | if (!device || !acpi_driver_data(device)) | 429 | if (!device || !acpi_driver_data(device)) |
430 | return -EINVAL; | 430 | return -EINVAL; |
431 | 431 | ||
432 | mem_device = (struct acpi_memory_device *)acpi_driver_data(device); | 432 | mem_device = acpi_driver_data(device); |
433 | kfree(mem_device); | 433 | kfree(mem_device); |
434 | 434 | ||
435 | return 0; | 435 | return 0; |