summaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/asus_acpi.c
diff options
context:
space:
mode:
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>2009-12-03 07:44:50 +0000
committerLen Brown <len.brown@intel.com>2009-12-09 15:54:30 -0500
commitdb7c554afeee7e535a5476dedb1339cb30d0b5df (patch)
treecdc793c7b537c41dc49636069c188302df2f31a8 /drivers/platform/x86/asus_acpi.c
parent5a4a9f6fd3dedefe06aed0e35c76bb6e0177adb6 (diff)
downloadop-kernel-dev-db7c554afeee7e535a5476dedb1339cb30d0b5df.zip
op-kernel-dev-db7c554afeee7e535a5476dedb1339cb30d0b5df.tar.gz
asus-acpi: 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/platform/x86/asus_acpi.c')
-rw-r--r--drivers/platform/x86/asus_acpi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/asus_acpi.c b/drivers/platform/x86/asus_acpi.c
index 783243f..0c9c531 100644
--- a/drivers/platform/x86/asus_acpi.c
+++ b/drivers/platform/x86/asus_acpi.c
@@ -466,6 +466,7 @@ MODULE_DEVICE_TABLE(acpi, asus_device_ids);
static struct acpi_driver asus_hotk_driver = {
.name = "asus_acpi",
.class = ACPI_HOTK_CLASS,
+ .owner = THIS_MODULE,
.ids = asus_device_ids,
.flags = ACPI_DRIVER_ALL_NOTIFY_EVENTS,
.ops = {
OpenPOWER on IntegriCloud