[PATCH] ACPI: Put button input devices in correct place in sysfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Properly set up parent on input device registered by the button driver.

Signed-off-by: Andrey Borzenkov <arvidjaar@xxxxxxx>

---

 drivers/acpi/button.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c
index 301e832..5b0f065 100644
--- a/drivers/acpi/button.c
+++ b/drivers/acpi/button.c
@@ -450,6 +450,7 @@ static int acpi_button_add(struct acpi_device *device)
 		break;
 	}
 
+	input->cdev.dev = &device->dev;
 	error = input_register_device(input);
 	if (error)
 		goto err_remove_handlers;

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux