[PATCH] Add zorro_bus_type probe and remove methods
authorRussell King <rmk@arm.linux.org.uk>
Thu, 5 Jan 2006 14:43:43 +0000 (14:43 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Jan 2006 19:26:10 +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/zorro/zorro-driver.c

index ccba227676f274f4321163f7df396f8a1ac4e710..fcbee748c59227b2f344ab483be2558d93e749c5 100644 (file)
@@ -77,7 +77,6 @@ int zorro_register_driver(struct zorro_driver *drv)
        /* initialize common driver fields */
        drv->driver.name = drv->name;
        drv->driver.bus = &zorro_bus_type;
-       drv->driver.probe = zorro_device_probe;
 
        /* register with core */
        count = driver_register(&drv->driver);
@@ -132,7 +131,8 @@ static int zorro_bus_match(struct device *dev, struct device_driver *drv)
 
 struct bus_type zorro_bus_type = {
        .name   = "zorro",
-       .match  = zorro_bus_match
+       .match  = zorro_bus_match,
+       .probe  = zorro_device_probe,
 };