static void acpi_pad_notify(acpi_handle handle, u32 event, void *data)
{
- struct acpi_device *adev = data;
-
if (event != ACPI_PROCESSOR_AGGREGATOR_NOTIFY) {
pr_warn("Unsupported event [0x%x]\n", event);
return;
}
acpi_pad_handle_notify(handle);
- acpi_bus_generate_netlink_event("acpi_pad", dev_name(&adev->dev), event, 0);
+ acpi_bus_generate_netlink_event("acpi_pad", dev_name(data), event, 0);
}
static int acpi_pad_probe(struct platform_device *pdev)
return -ENODEV;
return acpi_dev_install_notify_handler(adev, ACPI_DEVICE_NOTIFY,
- acpi_pad_notify, adev);
+ acpi_pad_notify, &pdev->dev);
}
static void acpi_pad_remove(struct platform_device *pdev)