diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-01-15 14:50:02 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-02-07 13:37:12 -0500 |
commit | 4b315627e6b894156e235ac905786e7d46aab2e6 (patch) | |
tree | 0d8e63cc9732e6388cddbb6f7bdbcbaac400b9fe /drivers/input/serio | |
parent | 725522b5453dd680412f2b6463a988e4fd148757 (diff) |
SERIO: add the sysfs driver name to all modules
This adds the module name to all SERIO drivers, if they are built into
the kernel or not. It will show up in /sys/modules/MODULE_NAME/drivers/
Cc: Kay Sievers <kay.sievers@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/input/serio')
-rw-r--r-- | drivers/input/serio/serio.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/input/serio/serio.c b/drivers/input/serio/serio.c index f0ce822c1028..17c8c63cbe1a 100644 --- a/drivers/input/serio/serio.c +++ b/drivers/input/serio/serio.c | |||
@@ -45,7 +45,7 @@ EXPORT_SYMBOL(serio_interrupt); | |||
45 | EXPORT_SYMBOL(__serio_register_port); | 45 | EXPORT_SYMBOL(__serio_register_port); |
46 | EXPORT_SYMBOL(serio_unregister_port); | 46 | EXPORT_SYMBOL(serio_unregister_port); |
47 | EXPORT_SYMBOL(serio_unregister_child_port); | 47 | EXPORT_SYMBOL(serio_unregister_child_port); |
48 | EXPORT_SYMBOL(serio_register_driver); | 48 | EXPORT_SYMBOL(__serio_register_driver); |
49 | EXPORT_SYMBOL(serio_unregister_driver); | 49 | EXPORT_SYMBOL(serio_unregister_driver); |
50 | EXPORT_SYMBOL(serio_open); | 50 | EXPORT_SYMBOL(serio_open); |
51 | EXPORT_SYMBOL(serio_close); | 51 | EXPORT_SYMBOL(serio_close); |
@@ -789,12 +789,14 @@ static void serio_attach_driver(struct serio_driver *drv) | |||
789 | drv->driver.name, error); | 789 | drv->driver.name, error); |
790 | } | 790 | } |
791 | 791 | ||
792 | int serio_register_driver(struct serio_driver *drv) | 792 | int __serio_register_driver(struct serio_driver *drv, struct module *owner, const char *mod_name) |
793 | { | 793 | { |
794 | int manual_bind = drv->manual_bind; | 794 | int manual_bind = drv->manual_bind; |
795 | int error; | 795 | int error; |
796 | 796 | ||
797 | drv->driver.bus = &serio_bus; | 797 | drv->driver.bus = &serio_bus; |
798 | drv->driver.owner = owner; | ||
799 | drv->driver.mod_name = mod_name; | ||
798 | 800 | ||
799 | /* | 801 | /* |
800 | * Temporarily disable automatic binding because probing | 802 | * Temporarily disable automatic binding because probing |