[PATCH] [repost] Make real parent for ACPI button input devices

From: Andrey Borzenkov
Date: Thu Feb 28 2008 - 13:14:43 EST


From: Andrey Borzenkov <arvidjaar@xxxxxxx>

Make sure input device for ACPI button gets proper place
in device tree.

Signed-off-by: Andrey Borzenkov <arvidjaar@xxxxxxx>

---

drivers/acpi/button.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c
index 24a7865..6c5da83 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:

Attachment: signature.asc
Description: This is a digitally signed message part.