static void __exit ide_exit(void) { proc_ide_destroy(); class_destroy(ide_port_class); bus_unregister(&ide_bus_type); }
void __exit cleanup_module (void) { int index; for (index = 0; index < MAX_HWIFS; ++index) ide_unregister(index); #ifdef CONFIG_BLK_DEV_IDEPNP pnpide_exit(); #endif proc_ide_destroy(); bus_unregister(&ide_bus_type); }