Example #1
0
void
cleanup_module(void)
{
    int this_dev;

    for (this_dev = 0; this_dev < MAX_EL2_CARDS; this_dev++) {
        struct device *dev = &dev_el2[this_dev];
        if (dev->priv != NULL) {
            void *priv = dev->priv;
            /* NB: el2_close() handles free_irq */
            release_region(dev->base_addr, EL2_IO_EXTENT);
            unregister_netdev(dev);
            kfree(priv);
        }
    }
    unlock_8390_module();
}
Example #2
0
void cleanup_module(void)
{
	/* FIXME: should probably keep track of net_device structs
           somewhere and unregister them here? */
	unlock_8390_module();
}