浏览代码

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>
Andrey Borzenkov 17 年之前
父节点
当前提交
3b34e5232f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/acpi/button.c

+ 1 - 0
drivers/acpi/button.c

@@ -449,6 +449,7 @@ static int acpi_button_add(struct acpi_device *device)
 	input->phys = button->phys;
 	input->phys = button->phys;
 	input->id.bustype = BUS_HOST;
 	input->id.bustype = BUS_HOST;
 	input->id.product = button->type;
 	input->id.product = button->type;
+	input->dev.parent = &device->dev;
 
 
 	switch (button->type) {
 	switch (button->type) {
 	case ACPI_BUTTON_TYPE_POWER:
 	case ACPI_BUTTON_TYPE_POWER: