]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/video/hpfb.c
[PATCH] atyfb: Fix compiler warnings
[linux-2.6-omap-h63xx.git] / drivers / video / hpfb.c
index 91cf3b577d156c4b78dea835d24b80b61461634f..9ab9b839a0f5e57cbf643c9bd7c238388d33ba9a 100644 (file)
@@ -295,6 +295,8 @@ static int __init hpfb_init_one(unsigned long phys_base, unsigned long virt_base
 
        if (register_framebuffer(&fb_info) < 0) {
                fb_dealloc_cmap(&fb_info.cmap);
+               iounmap(fb_info.screen_base);
+               fb_info.screen_base = NULL;
                return 1;
        }