Lines Matching refs:new_ld
197 struct lcd_device *new_ld; in lcd_device_register() local
202 new_ld = kzalloc(sizeof(struct lcd_device), GFP_KERNEL); in lcd_device_register()
203 if (!new_ld) in lcd_device_register()
206 mutex_init(&new_ld->ops_lock); in lcd_device_register()
207 mutex_init(&new_ld->update_lock); in lcd_device_register()
209 new_ld->dev.class = lcd_class; in lcd_device_register()
210 new_ld->dev.parent = parent; in lcd_device_register()
211 new_ld->dev.release = lcd_device_release; in lcd_device_register()
212 dev_set_name(&new_ld->dev, name); in lcd_device_register()
213 dev_set_drvdata(&new_ld->dev, devdata); in lcd_device_register()
215 rc = device_register(&new_ld->dev); in lcd_device_register()
217 kfree(new_ld); in lcd_device_register()
221 rc = lcd_register_fb(new_ld); in lcd_device_register()
223 device_unregister(&new_ld->dev); in lcd_device_register()
227 new_ld->ops = ops; in lcd_device_register()
229 return new_ld; in lcd_device_register()