static void acpi_pad_notify(acpi_handle handle, u32 event,
        void *data)
 {
-       struct acpi_device *device = data;
+       struct acpi_device *adev = data;
 
        switch (event) {
        case ACPI_PROCESSOR_AGGREGATOR_NOTIFY:
                acpi_pad_handle_notify(handle);
-               acpi_bus_generate_netlink_event(device->pnp.device_class,
-                       dev_name(&device->dev), event, 0);
+               acpi_bus_generate_netlink_event(adev->pnp.device_class,
+                       dev_name(&adev->dev), event, 0);
                break;
        default:
                pr_warn("Unsupported event [0x%x]\n", event);
 
 static int acpi_pad_probe(struct platform_device *pdev)
 {
-       struct acpi_device *device = ACPI_COMPANION(&pdev->dev);
+       struct acpi_device *adev = ACPI_COMPANION(&pdev->dev);
        acpi_status status;
 
-       strcpy(acpi_device_name(device), ACPI_PROCESSOR_AGGREGATOR_DEVICE_NAME);
-       strcpy(acpi_device_class(device), ACPI_PROCESSOR_AGGREGATOR_CLASS);
+       strcpy(acpi_device_name(adev), ACPI_PROCESSOR_AGGREGATOR_DEVICE_NAME);
+       strcpy(acpi_device_class(adev), ACPI_PROCESSOR_AGGREGATOR_CLASS);
+
+       status = acpi_install_notify_handler(adev->handle,
+               ACPI_DEVICE_NOTIFY, acpi_pad_notify, adev);
 
-       status = acpi_install_notify_handler(device->handle,
-               ACPI_DEVICE_NOTIFY, acpi_pad_notify, device);
        if (ACPI_FAILURE(status))
                return -ENODEV;
 
 
 static void acpi_pad_remove(struct platform_device *pdev)
 {
-       struct acpi_device *device = ACPI_COMPANION(&pdev->dev);
+       struct acpi_device *adev = ACPI_COMPANION(&pdev->dev);
 
        mutex_lock(&isolated_cpus_lock);
        acpi_pad_idle_cpus(0);
        mutex_unlock(&isolated_cpus_lock);
 
-       acpi_remove_notify_handler(device->handle,
+       acpi_remove_notify_handler(adev->handle,
                ACPI_DEVICE_NOTIFY, acpi_pad_notify);
 }