From: Andrey Borzenkov Date: Tue, 4 Mar 2008 23:06:35 +0000 (-0800) Subject: ACPI: button: make real parent for input devices in device tree X-Git-Tag: v2.6.25-rc6~19^2~2^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b34e5232fa9776e9a4b3f539cd9fee7609c900e;p=linux-2.6 ACPI: button: make real parent for input devices in device tree Signed-off-by: Andrey Borzenkov Cc: Dmitry Torokhov Signed-off-by: Andrew Morton Signed-off-by: Len Brown --- diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c index 24a7865a57..6c5da83cdb 100644 --- a/drivers/acpi/button.c +++ b/drivers/acpi/button.c @@ -449,6 +449,7 @@ static int acpi_button_add(struct acpi_device *device) input->phys = button->phys; input->id.bustype = BUS_HOST; input->id.product = button->type; + input->dev.parent = &device->dev; switch (button->type) { case ACPI_BUTTON_TYPE_POWER: