class_simple_device_add(mem_class, MKDEV(MEM_MAJOR, devlist[i].minor), 
class_device_create(mem_class, MKDEV(MEM_MAJOR, devlist[i].minor), 
static int __init chr_dev_init(void){	int i;	if (register_chrdev(MEM_MAJOR,"mem",&memory_fops))		printk("unable to get major %d for memory devs\n", MEM_MAJOR);	mem_class = class_simple_create(THIS_MODULE, "mem");	for (i = 0; i < ARRAY_SIZE(devlist); i++) {		class_simple_device_add(mem_class,					MKDEV(MEM_MAJOR, devlist[i].minor),					NULL, devlist[i].name);		devfs_mk_cdev(MKDEV(MEM_MAJOR, devlist[i].minor),				S_IFCHR | devlist[i].mode, devlist[i].name);	}		return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/ca8eca6884861c1ce294b05aacfdf9045bba9aff/mem.c/buggy/drivers/char/mem.c