Link input devices for ACPI buttons to their "physical" ACPI device node. This way the /sys/class/input/*/device links are set up correctly, the /proc/bus/input/devices "P: Phys=..." lines exist, and related oddness need not appear. Signed-off-by: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx> --- I've had this floating around for most of the last year as part of another patch ... never observed any problems. --- g26.orig/drivers/acpi/button.c 2007-11-04 11:47:40.000000000 -0800 +++ g26/drivers/acpi/button.c 2007-11-04 11:48:50.000000000 -0800 @@ -395,6 +395,7 @@ static int acpi_button_add(struct acpi_d error = -ENOMEM; goto err_free_button; } + input->cdev.dev = &device->dev; /* * Determine the button type (via hid), as fixed-feature buttons - To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html