acpi: make real parent for ACPI button input devices
PATCH 3/5 acpi: make real parent for ACPI button input devices
From: Andrey Borzenkov <[email protected]>
Make sure input device for ACPI button gets proper place in device tree.
Signed-off-by Andrey Borzenkov <[email protected]>
Cc Len Brown <[email protected]>
Cc Dmitry Torokhov <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/acpi/button.c | 1 + 1 file changed, 1 insertion(+)
drivers/acpi/button.c renamed from drivers/acpi/button.c~acpi-make-real-parent-for-acpi-button-input-devices +1 -0
@@ -449,6 +449,7 @@ static int acpi_button_add(struct acpi_d 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 :
_