static void init_chips(struct fb_info *p, unsigned long addr) { memset(p->screen_base, 0, 0x100000); p->fix = chipsfb_fix; p->fix.smem_start = addr; p->var = chipsfb_var; p->fbops = &chipsfb_ops; p->flags = FBINFO_DEFAULT; fb_alloc_cmap(&p->cmap, 256, 0); chips_hw_init(); }
static void __init init_chips(struct fb_info *p, unsigned long addr) { p->fix = chipsfb_fix; p->fix.smem_start = addr; p->var = chipsfb_var; p->fbops = &chipsfb_ops; p->flags = FBINFO_DEFAULT; fb_alloc_cmap(&p->cmap, 256, 0); if (register_framebuffer(p) < 0) { printk(KERN_ERR "C&T 65550 framebuffer failed to register\n"); return; } printk(KERN_INFO "fb%d: Chips 65550 frame buffer (%dK RAM detected)\n", p->node, p->fix.smem_len / 1024); chips_hw_init(); }