/* Adds a &struct rio_driver to the list of registered drivers. Returns a negative value on error, otherwise 0. If no error occurred, the driver remains registered even if no device was claimed during registration.  */
int rio_register_driver(struct rio_driver *rdrv)
/* Adds a &struct rio_driver to the list of registered drivers. Returns a negative value on error, otherwise 0. If no error occurred, the driver remains registered even if no device was claimed during registration.  */
int rio_register_driver(struct rio_driver *rdrv)
{
	rdrv->driver.name = rdrv->name;
	rdrv->driver.bus = &rio_bus_type;
	return driver_register(&rdrv->driver);
}