Lines Matching refs:cdevs
3153 /* init here, since reused cdevs cause crashes */
3154 driver->cdevs[index] = cdev_alloc();
3155 if (!driver->cdevs[index])
3157 driver->cdevs[index]->ops = &tty_fops;
3158 driver->cdevs[index]->owner = driver->owner;
3159 err = cdev_add(driver->cdevs[index], dev, count);
3161 kobject_put(&driver->cdevs[index]->kobj);
3299 cdev_del(driver->cdevs[index]);
3300 driver->cdevs[index] = NULL;
3318 unsigned int cdevs = 1;
3351 cdevs = lines;
3354 driver->cdevs = kcalloc(cdevs, sizeof(*driver->cdevs), GFP_KERNEL);
3355 if (!driver->cdevs) {
3365 kfree(driver->cdevs);
3389 cdev_del(driver->cdevs[0]);
3391 kfree(driver->cdevs);