Lines Matching defs:new_dev
137 struct display_device *new_dev = NULL;
149 new_dev = kzalloc(sizeof(struct display_device), GFP_KERNEL);
150 if (likely(new_dev) && unlikely(driver->probe(new_dev, devdata))) {
153 ret = idr_get_new(&allocated_dsp, new_dev, &new_dev->idx);
157 new_dev->dev = device_create(display_class, parent,
158 MKDEV(0, 0), new_dev,
159 "display%d", new_dev->idx);
160 if (!IS_ERR(new_dev->dev)) {
161 new_dev->parent = parent;
162 new_dev->driver = driver;
163 mutex_init(&new_dev->lock);
164 return new_dev;
167 idr_remove(&allocated_dsp, new_dev->idx);
172 kfree(new_dev);