val2 &= ~(LVDS_DISPLAY_DIS);
switch (blank) {
- case FB_BLANK_UNBLANK:
- case FB_BLANK_NORMAL:
+ case VESA_NO_BLANKING:
break;
- case FB_BLANK_VSYNC_SUSPEND:
+ case VESA_VSYNC_SUSPEND:
val |= (CRTC_DISPLAY_DIS | CRTC_VSYNC_DIS);
break;
- case FB_BLANK_HSYNC_SUSPEND:
+ case VESA_HSYNC_SUSPEND:
val |= (CRTC_DISPLAY_DIS | CRTC_HSYNC_DIS);
break;
- case FB_BLANK_POWERDOWN:
+ case VESA_POWERDOWN:
val |= (CRTC_DISPLAY_DIS | CRTC_VSYNC_DIS |
CRTC_HSYNC_DIS);
val2 |= (LVDS_DISPLAY_DIS);
break;
}
- /* let fbcon do a soft blank for us */
- return (blank == FB_BLANK_NORMAL) ? 1 : 0;
+ return 0;
}
info = &rinfo->info;
+ info->currcon = -1;
info->par = rinfo;
info->pseudo_palette = rinfo->pseudo_palette;
info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
pci_set_drvdata(pdev, rinfo);
rinfo->next = board_list;
board_list = rinfo;
- ((struct fb_info *) rinfo)->device = &pdev->dev;
+
if (register_framebuffer ((struct fb_info *) rinfo) < 0) {
printk ("radeonfb: could not register framebuffer\n");
iounmap(rinfo->fb_base);