aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/amifb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/amifb.c')
-rw-r--r--drivers/video/amifb.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/drivers/video/amifb.c b/drivers/video/amifb.c
index a4e3fca05891..1a849b870bcc 100644
--- a/drivers/video/amifb.c
+++ b/drivers/video/amifb.c
@@ -2407,10 +2407,10 @@ default_chipset:
2407 fb_info.fix.smem_len); 2407 fb_info.fix.smem_len);
2408 if (!videomemory) { 2408 if (!videomemory) {
2409 printk("amifb: WARNING! unable to map videomem cached writethrough\n"); 2409 printk("amifb: WARNING! unable to map videomem cached writethrough\n");
2410 videomemory = ZTWO_VADDR(fb_info.fix.smem_start); 2410 fb_info.screen_base = (char *)ZTWO_VADDR(fb_info.fix.smem_start);
2411 } 2411 } else
2412 fb_info.screen_base = (char *)videomemory;
2412 2413
2413 fb_info.screen_base = (char *)videomemory;
2414 memset(dummysprite, 0, DUMMYSPRITEMEMSIZE); 2414 memset(dummysprite, 0, DUMMYSPRITEMEMSIZE);
2415 2415
2416 /* 2416 /*
@@ -2453,6 +2453,8 @@ static void amifb_deinit(void)
2453{ 2453{
2454 fb_dealloc_cmap(&fb_info.cmap); 2454 fb_dealloc_cmap(&fb_info.cmap);
2455 chipfree(); 2455 chipfree();
2456 if (videomemory)
2457 iounmap((void*)videomemory);
2456 release_mem_region(CUSTOM_PHYSADDR+0xe0, 0x120); 2458 release_mem_region(CUSTOM_PHYSADDR+0xe0, 0x120);
2457 custom.dmacon = DMAF_ALL | DMAF_MASTER; 2459 custom.dmacon = DMAF_ALL | DMAF_MASTER;
2458} 2460}
@@ -2904,14 +2906,6 @@ static int ami_decode_var(struct fb_var_screeninfo *var,
2904 par->crsr.spot_x = par->crsr.spot_y = 0; 2906 par->crsr.spot_x = par->crsr.spot_y = 0;
2905 par->crsr.height = par->crsr.width = 0; 2907 par->crsr.height = par->crsr.width = 0;
2906 2908
2907#if 0 /* fbmon not done. uncomment for 2.5.x -brad */
2908 if (!fbmon_valid_timings(pixclock[clk_shift], htotal, vtotal,
2909 &fb_info)) {
2910 DPRINTK("mode doesn't fit for monitor\n");
2911 return -EINVAL;
2912 }
2913#endif
2914
2915 return 0; 2909 return 0;
2916} 2910}
2917 2911