瀏覽代碼

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>
Alan Jenkins 15 年之前
父節點
當前提交
db7c554afe
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/platform/x86/asus_acpi.c

+ 1 - 0
drivers/platform/x86/asus_acpi.c

@@ -466,6 +466,7 @@ MODULE_DEVICE_TABLE(acpi, asus_device_ids);
 static struct acpi_driver asus_hotk_driver = {
 static struct acpi_driver asus_hotk_driver = {
 	.name = "asus_acpi",
 	.name = "asus_acpi",
 	.class = ACPI_HOTK_CLASS,
 	.class = ACPI_HOTK_CLASS,
+	.owner = THIS_MODULE,
 	.ids = asus_device_ids,
 	.ids = asus_device_ids,
 	.flags = ACPI_DRIVER_ALL_NOTIFY_EVENTS,
 	.flags = ACPI_DRIVER_ALL_NOTIFY_EVENTS,
 	.ops = {
 	.ops = {