Skip to contentSkip to conversation

acpi: make real parent for ACPI button input devices

PATCH In review [email protected] 1 participant 1 message Mar 4, 2008 ACPI

lore
Share & tools
lore
#0 lore raw

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.

---

 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
diff -puN drivers/acpi/button.c~acpi-make-real-parent-for-acpi-button-input-devices drivers/acpi/button.c
@@ -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:

_