class_simple_device_remove(MKDEV(AOE_MAJOR, chardevs[i].minor)); class_simple_destroy(aoe_class);
class_device_destroy(aoe_class, MKDEV(AOE_MAJOR, chardevs[i].minor)); class_destroy(aoe_class);
aoechr_exit(void){	int i;	for (i = 0; i < ARRAY_SIZE(chardevs); ++i)		class_simple_device_remove(MKDEV(AOE_MAJOR, chardevs[i].minor));	class_simple_destroy(aoe_class);	unregister_chrdev(AOE_MAJOR, "aoechr");}