diff options
author | Andrey Borzenkov <arvidjaar@mail.ru> | 2008-03-04 15:06:35 -0800 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-03-11 13:38:49 -0400 |
commit | 3b34e5232fa9776e9a4b3f539cd9fee7609c900e (patch) | |
tree | 3c0573028d03257c56a833031e9566aee17d5983 /drivers/acpi/button.c | |
parent | 2f44bbb495dd3e6d0209eff2257438ab9c570e5b (diff) | |
download | op-kernel-dev-3b34e5232fa9776e9a4b3f539cd9fee7609c900e.zip op-kernel-dev-3b34e5232fa9776e9a4b3f539cd9fee7609c900e.tar.gz |
ACPI: button: make real parent for input devices in device tree
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>
Diffstat (limited to 'drivers/acpi/button.c')
-rw-r--r-- | 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: |