[PATCH] Add dio_bus_type probe and remove methods
authorRussell King <rmk@arm.linux.org.uk>
Thu, 5 Jan 2006 14:37:18 +0000 (14:37 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Jan 2006 19:26:07 +0000 (11:26 -0800)
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/dio/dio-driver.c

index ffe6f44ac76fcb080e976584c7499f1ace73e13d..ca8e69d2f64d632118c32e9c05c63a5ae660a71e 100644 (file)
@@ -83,7 +83,6 @@ int dio_register_driver(struct dio_driver *drv)
        /* initialize common driver fields */
        drv->driver.name = drv->name;
        drv->driver.bus = &dio_bus_type;
-       drv->driver.probe = dio_device_probe;
 
        /* register with core */
        count = driver_register(&drv->driver);
@@ -145,7 +144,8 @@ static int dio_bus_match(struct device *dev, struct device_driver *drv)
 
 struct bus_type dio_bus_type = {
        .name   = "dio",
-       .match  = dio_bus_match
+       .match  = dio_bus_match,
+       .probe  = dio_device_probe,
 };