platform-drivers: x86: set acpi_driver.owner
Subsystems (4)
PATCH 1/1 platform-drivers: x86: set acpi_driver.owner
The owner field provides the link between drivers and modules in sysfs.
After setting the owner field, we can see which module provides which driver and vice versa by looking at /sys/bus/acpi/drivers/*/module and /sys/module/*/drivers/acpi:*.
Signed-off-by Axel Lin <[email protected]>
Cc Jonathan Woithe <[email protected]>
Cc Sujith Thomas <[email protected]>
Cc Harald Welte <[email protected]>
Cc Herton Ronaldo Krzesinski <[email protected]>
Cc Carlos Corbacho <[email protected]>
Cc Paul Fox <[email protected]>
--- drivers/platform/x86/fujitsu-laptop.c | 2 ++ drivers/platform/x86/intel_menlow.c | 1 + drivers/platform/x86/panasonic-laptop.c | 1 + drivers/platform/x86/topstar-laptop.c | 1 + drivers/platform/x86/wmi.c | 1 + drivers/platform/x86/xo15-ebook.c | 1 + 6 files changed, 7 insertions(+), 0 deletions(-)
drivers/platform/x86/fujitsu-laptop.c +2 -0
@@ -1063,6 +1063,7 @@ static struct acpi_driver acpi_fujitsu_driver = { .remove = acpi_fujitsu_remove, .notify = acpi_fujitsu_notify, }, + .owner = THIS_MODULE, }; static const struct acpi_device_id fujitsu_hotkey_device_ids[] = {
@@ -1079,6 +1080,7 @@ static struct acpi_driver acpi_fujitsu_hotkey_driver = { .remove = acpi_fujitsu_hotkey_remove, .notify = acpi_fujitsu_hotkey_notify, }, + .owner = THIS_MODULE, };static int __init fujitsu_init (void )
drivers/platform/x86/intel_menlow.c +1 -0
@@ -225,6 +225,7 @@ static struct acpi_driver intel_menlow_memory_driver = { .add = intel_menlow_memory_add, .remove = intel_menlow_memory_remove, }, + .owner = THIS_MODULE, };/*
drivers/platform/x86/panasonic-laptop.c +1 -0
@@ -199,6 +199,7 @@ static struct acpi_driver acpi_pcc_driver = { .resume = acpi_pcc_hotkey_resume, .notify = acpi_pcc_hotkey_notify, }, + .owner = THIS_MODULE, }; static const struct key_entry panasonic_keymap[] = {
drivers/platform/x86/topstar-laptop.c +1 -0
@@ -184,6 +184,7 @@ static struct acpi_driver acpi_topstar_driver = { .remove = acpi_topstar_remove, .notify = acpi_topstar_notify, }, + .owner = THIS_MODULE, };static int __init topstar_laptop_init (void )
drivers/platform/x86/wmi.c +1 -0
@@ -111,6 +111,7 @@ static struct acpi_driver acpi_wmi_driver = { .remove = acpi_wmi_remove, .notify = acpi_wmi_notify, }, + .owner = THIS_MODULE, };/*
drivers/platform/x86/xo15-ebook.c +1 -0
@@ -164,6 +164,7 @@ static struct acpi_driver xo15_ebook_driver = { .remove = ebook_switch_remove, .notify = ebook_switch_notify, }, + .owner = THIS_MODULE, };static int __init xo15_ebook_init (void )
Signature · 1 line
1.7.2