Lines Matching refs:cdevs
3140 /* init here, since reused cdevs cause crashes */
3141 driver->cdevs[index] = cdev_alloc();
3142 if (!driver->cdevs[index])
3144 driver->cdevs[index]->ops = &tty_fops;
3145 driver->cdevs[index]->owner = driver->owner;
3146 err = cdev_add(driver->cdevs[index], dev, count);
3148 kobject_put(&driver->cdevs[index]->kobj);
3290 cdev_del(driver->cdevs[index]);
3291 driver->cdevs[index] = NULL;
3309 unsigned int cdevs = 1;
3343 cdevs = lines;
3346 driver->cdevs = kcalloc(cdevs, sizeof(*driver->cdevs), GFP_KERNEL);
3347 if (!driver->cdevs) {
3357 kfree(driver->cdevs);
3381 cdev_del(driver->cdevs[0]);
3383 kfree(driver->cdevs);