[patch 2.6.24-rc1-git] properly hookup acpi buttons to driver model tree

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

 



Link input devices for ACPI buttons to their "physical" ACPI device node.
This way the /sys/class/input/*/device links are set up correctly, the
/proc/bus/input/devices "P: Phys=..." lines exist, and related oddness
need not appear.

Signed-off-by: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx>
---
I've had this floating around for most of the last year as part of
another patch ... never observed any problems.

--- g26.orig/drivers/acpi/button.c	2007-11-04 11:47:40.000000000 -0800
+++ g26/drivers/acpi/button.c	2007-11-04 11:48:50.000000000 -0800
@@ -395,6 +395,7 @@ static int acpi_button_add(struct acpi_d
 		error = -ENOMEM;
 		goto err_free_button;
 	}
+	input->cdev.dev = &device->dev;
 
 	/*
 	 * Determine the button type (via hid), as fixed-feature buttons
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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