diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-14 13:42:40 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-14 13:42:40 -0500 |
commit | 3e2b32b69308e974cd1167beaf266d3c716e4734 (patch) | |
tree | 0f1b24dcb7b066a6322d33235b95655d885695ac /drivers/input/serio | |
parent | 3824ba7df91745da6ebac703c87c3b801c34fdd0 (diff) | |
parent | 9c08a938ce5a3e1c9d5f764dc6ae844cb1af76ff (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6
Diffstat (limited to 'drivers/input/serio')
-rw-r--r-- | drivers/input/serio/serio.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/input/serio/serio.c b/drivers/input/serio/serio.c index 8e530cc970e1..2f76813c3a64 100644 --- a/drivers/input/serio/serio.c +++ b/drivers/input/serio/serio.c | |||
@@ -59,9 +59,7 @@ static DECLARE_MUTEX(serio_sem); | |||
59 | 59 | ||
60 | static LIST_HEAD(serio_list); | 60 | static LIST_HEAD(serio_list); |
61 | 61 | ||
62 | static struct bus_type serio_bus = { | 62 | static struct bus_type serio_bus; |
63 | .name = "serio", | ||
64 | }; | ||
65 | 63 | ||
66 | static void serio_add_port(struct serio *serio); | 64 | static void serio_add_port(struct serio *serio); |
67 | static void serio_destroy_port(struct serio *serio); | 65 | static void serio_destroy_port(struct serio *serio); |
@@ -750,11 +748,15 @@ static int serio_driver_remove(struct device *dev) | |||
750 | return 0; | 748 | return 0; |
751 | } | 749 | } |
752 | 750 | ||
751 | static struct bus_type serio_bus = { | ||
752 | .name = "serio", | ||
753 | .probe = serio_driver_probe, | ||
754 | .remove = serio_driver_remove, | ||
755 | }; | ||
756 | |||
753 | void __serio_register_driver(struct serio_driver *drv, struct module *owner) | 757 | void __serio_register_driver(struct serio_driver *drv, struct module *owner) |
754 | { | 758 | { |
755 | drv->driver.bus = &serio_bus; | 759 | drv->driver.bus = &serio_bus; |
756 | drv->driver.probe = serio_driver_probe; | ||
757 | drv->driver.remove = serio_driver_remove; | ||
758 | 760 | ||
759 | serio_queue_event(drv, owner, SERIO_REGISTER_DRIVER); | 761 | serio_queue_event(drv, owner, SERIO_REGISTER_DRIVER); |
760 | } | 762 | } |