Input: atlas_btns - adds a missing owner field for atlas_acpi_driver
authorAxel Lin <axel.lin@gmail.com>
Tue, 13 Jul 2010 16:13:23 +0000 (09:13 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 13 Jul 2010 16:43:15 +0000 (09:43 -0700)
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

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/misc/atlas_btns.c

index dfaa9a045ed8a9378ad74030f0bc87dfd5dc8f2e..7d5360869047185b4be3bffb282476b53b2c9db1 100644 (file)
@@ -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,
This page took 0.042654 seconds and 5 git commands to generate.