ACPI: button: make real parent for input devices in device tree

Signed-off-by: Andrey Borzenkov <[email protected]>
Cc: Dmitry Torokhov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Len Brown <[email protected]>
This commit is contained in:
Andrey Borzenkov 2008-03-04 15:06:35 -08:00 • committed by Len Brown
commit 3b34e5232f

View 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: