On Wed, 20 Dec 2006 12:01:30 +0000 (GMT) "Maciej W. Rozycki" <macro@xxxxxxxxxxxxxx> wrote: > +/** > + * tc_register_driver - register a new TC driver > + * @drv: the driver structure to register > + * > + * Adds the driver structure 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 tc_register_driver(struct tc_driver *tdrv) > +{ > + return driver_register(&tdrv->driver); > +} > +EXPORT_SYMBOL(tc_register_driver); > + > +/** > + * tc_unregister_driver - unregister a TC driver > + * @drv: the driver structure to unregister > + * > + * Deletes the driver structure from the list of registered TC drivers, > + * gives it a chance to clean up by calling its remove() function for > + * each device it was responsible for, and marks those devices as > + * driverless. > + */ > +void tc_unregister_driver(struct tc_driver *tdrv) > +{ > + driver_unregister(&tdrv->driver); > +} > +EXPORT_SYMBOL(tc_unregister_driver); I spose making these inline would save a bit of code, stack space and a couple of exports. - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html