Exemple #1
0
static void __exit cleanup_mtdchar(void)
{

#ifdef CONFIG_DEVFS_FS
	mtdchar_devfs_exit();
#else
	unregister_mtd_user(&notifier);
	class_destroy(mtd_class);
#endif
	unregister_chrdev(MTD_CHAR_MAJOR, "mtd");
}
Exemple #2
0
static void __exit cleanup_mtdchar(void)
{
	mtdchar_devfs_exit();
	unregister_chrdev(MTD_CHAR_MAJOR, "mtd");
}