/* Called from the driver init routine to register a driver. The cx_drv struct contains the driver name, a pointer to a table of part/mfg numbers and a pointer to the driver's probe/attach routine.  */
int cx_driver_register(struct cx_drv *cx_driver)
/* Called from the driver init routine to register a driver. The cx_drv struct contains the driver name, a pointer to a table of part/mfg numbers and a pointer to the driver's probe/attach routine.  */
int cx_driver_register(struct cx_drv *cx_driver)
{
	cx_driver->driver.name = cx_driver->name;
	cx_driver->driver.bus = &tiocx_bus_type;
	return driver_register(&cx_driver->driver);
}