static void __exit cleanup_mtdchar(void) { #ifdef CONFIG_DEVFS_FS mtdchar_devfs_exit(); #else unregister_mtd_user(¬ifier); class_destroy(mtd_class); #endif unregister_chrdev(MTD_CHAR_MAJOR, "mtd"); }
static void __exit cleanup_mtdchar(void) { mtdchar_devfs_exit(); unregister_chrdev(MTD_CHAR_MAJOR, "mtd"); }