X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=drivers%2Fvideo%2Fhpfb.c;h=9ab9b839a0f5e57cbf643c9bd7c238388d33ba9a;hb=26bb83a755593a53bd248e20d699b0c813f1e238;hp=abd920a663a04a2fbbfd8446c1183af83ebf7228;hpb=d62e54abca1146981fc9f98f85ff398a113a22c2;p=powerpc.git diff --git a/drivers/video/hpfb.c b/drivers/video/hpfb.c index abd920a663..9ab9b839a0 100644 --- a/drivers/video/hpfb.c +++ b/drivers/video/hpfb.c @@ -11,7 +11,6 @@ #include #include #include -#include #include #include #include @@ -296,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; }