/* * Module removal */ static void __exit exit_ipwireless(void) { printk(KERN_INFO IPWIRELESS_PCCARD_NAME " " IPWIRELESS_PCMCIA_VERSION " removed\n"); pcmcia_unregister_driver(&me); ipwireless_tty_release(); }
/* * Module insertion : initialisation of the module. * Register the card with cardmgr... */ static int __init init_ipwireless(void) { int ret; ret = ipwireless_tty_init(); if (ret != 0) return ret; ret = pcmcia_register_driver(&me); if (ret != 0) ipwireless_tty_release(); return ret; }
/* * Module insertion : initialisation of the module. * Register the card with cardmgr... */ static int __init init_ipwireless(void) { int ret; printk(KERN_INFO IPWIRELESS_PCCARD_NAME " " IPWIRELESS_PCMCIA_VERSION " by " IPWIRELESS_PCMCIA_AUTHOR "\n"); ret = ipwireless_tty_init(); if (ret != 0) return ret; ret = pcmcia_register_driver(&me); if (ret != 0) ipwireless_tty_release(); return ret; }
/* * Module removal */ static void __exit exit_ipwireless(void) { pcmcia_unregister_driver(&me); ipwireless_tty_release(); }