aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>2009-12-03 02:44:51 -0500
committerLen Brown <len.brown@intel.com>2009-12-09 15:54:30 -0500
commitedf624522757adec8ceb83a4b97747eba645c454 (patch)
treefafce580e5c8ac8b805c8332d8c4cc8583d04f34 /drivers
parentdb7c554afeee7e535a5476dedb1339cb30d0b5df (diff)
asus-laptop: set acpi_driver.owner
The owner field provides the link between drivers and modules in sysfs, but no ACPI driver was setting it. After setting the owner field, we can see which module provides which driver and vice versa by looking at /sys/bus/acpi/driver/*/module and /sys/module/*/drivers/acpi:*. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/platform/x86/asus-laptop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c
index 4234edbe6ffc..6c05172bf3d3 100644
--- a/drivers/platform/x86/asus-laptop.c
+++ b/drivers/platform/x86/asus-laptop.c
@@ -232,6 +232,7 @@ static void asus_hotk_notify(struct acpi_device *device, u32 event);
232static struct acpi_driver asus_hotk_driver = { 232static struct acpi_driver asus_hotk_driver = {
233 .name = ASUS_HOTK_NAME, 233 .name = ASUS_HOTK_NAME,
234 .class = ASUS_HOTK_CLASS, 234 .class = ASUS_HOTK_CLASS,
235 .owner = THIS_MODULE,
235 .ids = asus_device_ids, 236 .ids = asus_device_ids,
236 .flags = ACPI_DRIVER_ALL_NOTIFY_EVENTS, 237 .flags = ACPI_DRIVER_ALL_NOTIFY_EVENTS,
237 .ops = { 238 .ops = {