kernels/linux-2.4.0/drivers/net/3c527.c
/**
 *	cleanup_module:
 *
 *	Unloading time. We release the MCA bus resources and the interrupt
 *	at which point everything is ready to unload. The card must be stopped
 *	at this point or we would not have been called. When we unload we
 *	leave the card stopped but not totally shut down. When the card is
 *	initialized it must be rebooted or the rings reloaded before any
 *	transmit operations are allowed to start scribbling into memory.
 */
Unloading time. We release the MCA bus resources and the interrupt
at which point everything is ready to unload. The card must be stopped
at this point or we would not have been called. When we unload we
leave the card stopped but not totally shut down. When the card is
initialized it must be rebooted or the rings reloaded before any
transmit operations are allowed to start scribbling into memory.
Unloading time . We release the MCA bus resources and the interrupt at which point everything is ready to unload . The card must be stopped at this point or we would not have been called . When we unload we leave the card stopped but not totally shut down . When the card is initialized it must be rebooted or the rings reloaded before any transmit operations are allowed to start scribbling into memory .
void cleanup_module(void)
{
	int slot;
	unregister_netdev(&this_device);
	if (this_device.priv)
	{
		struct mc32_local *lp=this_device.priv;
		slot = lp->slot;
		mca_mark_as_unused(slot);
		mca_set_adapter_name(slot, NULL);
		kfree(this_device.priv);
	}
	free_irq(this_device.irq, &this_device);
}
void cleanup_module ( void ) { int slot ; unregister_netdev ( & this_device ) ; if ( this_device . priv ) { struct mc32_local * lp = this_device . priv ; slot = lp -> slot ; mca_mark_as_unused ( slot ) ; mca_set_adapter_name ( slot , NULL ) ; kfree ( this_device . priv ) ; } free_irq ( this_device . irq , & this_device ) ; }
cleanup_module:
      Unloading time.
cleanup_module : Unloading time .
/* No need to check MOD_IN_USE, as sys_delete_module() checks. */ /*
	 * If we don't do this, we can't re-insmod it later.
	 */