Skip to content

Commit

Permalink
ACPI: button: make real parent for input devices in device tree
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrey Borzenkov authored and Len Brown committed Mar 11, 2008
1 parent 2f44bbb commit 3b34e52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/acpi/button.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3b34e52

Please sign in to comment.