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: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3b34e5232fa9776e9a4b3f539cd9fee7609c900e;p=linux-2.6-omap-h63xx.git 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 24a7865a57c..6c5da83cdb6 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: