Lines Matching refs:cdevs
3176 /* init here, since reused cdevs cause crashes */
3177 driver->cdevs[index] = cdev_alloc();
3178 if (!driver->cdevs[index])
3180 driver->cdevs[index]->ops = &tty_fops;
3181 driver->cdevs[index]->owner = driver->owner;
3182 err = cdev_add(driver->cdevs[index], dev, count);
3184 kobject_put(&driver->cdevs[index]->kobj);
3322 cdev_del(driver->cdevs[index]);
3323 driver->cdevs[index] = NULL;
3341 unsigned int cdevs = 1;
3374 cdevs = lines;
3377 driver->cdevs = kcalloc(cdevs, sizeof(*driver->cdevs), GFP_KERNEL);
3378 if (!driver->cdevs) {
3388 kfree(driver->cdevs);
3412 cdev_del(driver->cdevs[0]);
3414 kfree(driver->cdevs);