Lines Matching defs:new_bd
276 struct backlight_device *new_bd;
281 new_bd = kzalloc(sizeof(struct backlight_device), GFP_KERNEL);
282 if (!new_bd)
285 mutex_init(&new_bd->update_lock);
286 mutex_init(&new_bd->ops_lock);
288 new_bd->dev.class = backlight_class;
289 new_bd->dev.parent = parent;
290 new_bd->dev.release = bl_device_release;
291 dev_set_name(&new_bd->dev, name);
292 dev_set_drvdata(&new_bd->dev, devdata);
296 memcpy(&new_bd->props, props,
299 rc = device_register(&new_bd->dev);
301 kfree(new_bd);
305 rc = backlight_register_fb(new_bd);
307 device_unregister(&new_bd->dev);
311 new_bd->ops = ops;
316 pmac_backlight = new_bd;
320 return new_bd;