static void __exit cleanup_mtdchar(void) { unregister_mtd_user(¬ifier); class_destroy(mtd_class); unregister_chrdev(MTD_CHAR_MAJOR, "mtd"); }