Skip to content

Commit

Permalink
[PATCH] Add serio bus_type probe and remove methods
Browse files Browse the repository at this point in the history
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Russell King authored and Greg Kroah-Hartman committed Jan 13, 2006
1 parent 29a4a20 commit 30226f8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions drivers/input/serio/serio.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ static DECLARE_MUTEX(serio_sem);

static LIST_HEAD(serio_list);

static struct bus_type serio_bus = {
.name = "serio",
};
static struct bus_type serio_bus;

static void serio_add_port(struct serio *serio);
static void serio_destroy_port(struct serio *serio);
Expand Down Expand Up @@ -750,11 +748,15 @@ static int serio_driver_remove(struct device *dev)
return 0;
}

static struct bus_type serio_bus = {
.name = "serio",
.probe = serio_driver_probe,
.remove = serio_driver_remove,
};

void __serio_register_driver(struct serio_driver *drv, struct module *owner)
{
drv->driver.bus = &serio_bus;
drv->driver.probe = serio_driver_probe;
drv->driver.remove = serio_driver_remove;

serio_queue_event(drv, owner, SERIO_REGISTER_DRIVER);
}
Expand Down

0 comments on commit 30226f8

Please sign in to comment.