]> err.no Git - linux-2.6/commitdiff
ACPI: button: make real parent for input devices in device tree
authorAndrey Borzenkov <arvidjaar@mail.ru>
Tue, 4 Mar 2008 23:06:35 +0000 (15:06 -0800)
committerLen Brown <len.brown@intel.com>
Tue, 11 Mar 2008 17:38:49 +0000 (13:38 -0400)
Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru>
Cc: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/button.c

index 24a7865a57cb2515c740fbee5d9b038ca3927630..6c5da83cdb6807be36db10253bd42c2c332c0402 100644 (file)
@@ -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: