INIT_LIST_HEAD(&fb_info->modelist);
if (fb_info->skip_vt_switch)
- pm_vt_switch_required(fb_info->dev, false);
+ pm_vt_switch_required(fb_info->device, false);
else
- pm_vt_switch_required(fb_info->dev, true);
+ pm_vt_switch_required(fb_info->device, true);
fb_var_to_videomode(&mode, &fb_info->var);
fb_add_videomode(&mode, &fb_info->modelist);
device_destroy(fb_class, MKDEV(FB_MAJOR, i));
- pm_vt_switch_unregister(fb_info->dev);
+ pm_vt_switch_unregister(fb_info->device);
unbind_console(fb_info);