Skip to contentSkip to conversation

atlas_btns: adds a missing owner field for atlas_acpi_driver

PATCH New Axel Lin 1 participant 1 message Jul 13, 2010

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 atlas_btns: adds a missing owner field for atlas_acpi_driver

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/Atlas ACPI/module and /sys/module/atlas_btns/drivers/acpi:Atlas ACPI

---
 drivers/input/misc/atlas_btns.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/input/misc/atlas_btns.c +1 -0
index dfaa9a0..7d53608 100644
@@ -145,6 +145,7 @@ MODULE_DEVICE_TABLE(acpi, atlas_device_ids);
 static struct acpi_driver atlas_acpi_driver = {
 	.name	= ACPI_ATLAS_NAME,
 	.class	= ACPI_ATLAS_CLASS,
+	.owner	= THIS_MODULE,
 	.ids	= atlas_device_ids,
 	.ops	= {
 		.add	= atlas_acpi_button_add,
Signature · 1 line
1.5.4.3