diff --git a/extras/kernel/ebbchar/ebbchar.c b/extras/kernel/ebbchar/ebbchar.c index 771b859..6bafe9c 100644 --- a/extras/kernel/ebbchar/ebbchar.c +++ b/extras/kernel/ebbchar/ebbchar.c @@ -93,7 +93,6 @@ static int __init ebbchar_init(void){ */ static void __exit ebbchar_exit(void){ device_destroy(ebbcharClass, MKDEV(majorNumber, 0)); // remove the device - class_unregister(ebbcharClass); // unregister the device class class_destroy(ebbcharClass); // remove the device class unregister_chrdev(majorNumber, DEVICE_NAME); // unregister the major number printk(KERN_INFO "EBBChar: Goodbye from the LKM!\n");