X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Frapidio%2Frio-driver.c;h=5480119ff9d36d94af3dce527dbaacac4d5811d7;hb=d04ae27bae42bcce1b3fa70ca2edf25d92b1cf39;hp=dc749609699aa178e5e1321942d44930378d2285;hpb=1ef43204f4bd24dcd3156185b19b31b6b4151ae9;p=mv-sheeva.git diff --git a/drivers/rapidio/rio-driver.c b/drivers/rapidio/rio-driver.c index dc749609699..5480119ff9d 100644 --- a/drivers/rapidio/rio-driver.c +++ b/drivers/rapidio/rio-driver.c @@ -147,8 +147,6 @@ int rio_register_driver(struct rio_driver *rdrv) /* initialize common driver fields */ rdrv->driver.name = rdrv->name; rdrv->driver.bus = &rio_bus_type; - rdrv->driver.probe = rio_device_probe; - rdrv->driver.remove = rio_device_remove; /* register with core */ return driver_register(&rdrv->driver); @@ -204,7 +202,9 @@ static struct device rio_bus = { struct bus_type rio_bus_type = { .name = "rapidio", .match = rio_match_bus, - .dev_attrs = rio_dev_attrs + .dev_attrs = rio_dev_attrs, + .probe = rio_device_probe, + .remove = rio_device_remove, }; /**