···190190 return ret;191191 }192192193193- devfs_mk_cdev(MKDEV(30, 0), S_IFCHR|S_IRUSR|S_IWUSR, "socksys");194194-195193 file = fcheck(ret);196194 /* N.B. Is this valid? Suppose the f_ops are in a module ... */197195 socksys_file_ops = *file->f_op;
···804804 dev_t dev = MKDEV(ipmi_major, if_num);805805 struct ipmi_reg_list *entry;806806807807- devfs_mk_cdev(dev, S_IFCHR | S_IRUSR | S_IWUSR,808808- "ipmidev/%d", if_num);809809-810807 entry = kmalloc(sizeof(*entry), GFP_KERNEL);811808 if (!entry) {812809 printk(KERN_ERR "ipmi_devintf: Unable to create the"
+1-5
drivers/char/istallion.c
···52145214 "device\n");5215521552165216 istallion_class = class_create(THIS_MODULE, "staliomem");52175217- for (i = 0; i < 4; i++) {52185218- devfs_mk_cdev(MKDEV(STL_SIOMEMMAJOR, i),52195219- S_IFCHR | S_IRUSR | S_IWUSR,52205220- "staliomem/%d", i);52175217+ for (i = 0; i < 4; i++)52215218 class_device_create(istallion_class, NULL,52225219 MKDEV(STL_SIOMEMMAJOR, i),52235220 NULL, "staliomem%d", i);52245224- }5225522152265222/*52275223 * Set up the tty driver structure and register us as a driver.
···941941 printk("unable to get major %d for memory devs\n", MEM_MAJOR);942942943943 mem_class = class_create(THIS_MODULE, "mem");944944- for (i = 0; i < ARRAY_SIZE(devlist); i++) {944944+ for (i = 0; i < ARRAY_SIZE(devlist); i++)945945 class_device_create(mem_class, NULL,946946 MKDEV(MEM_MAJOR, devlist[i].minor),947947 NULL, devlist[i].name);948948- devfs_mk_cdev(MKDEV(MEM_MAJOR, devlist[i].minor),949949- S_IFCHR | devlist[i].mode, devlist[i].name);950950- }951948952949 return 0;953950}