]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/video/w100fb.c
mv643xx_eth: get rid of individual port config register bit defines
[linux-2.6-omap-h63xx.git] / drivers / video / w100fb.c
index 003c49a490eb9034f21bb8b8f49d8d91b0eddee6..30469bf906e54b51a6688918624fd030ab6f25cf 100644 (file)
@@ -765,8 +765,10 @@ int __init w100fb_probe(struct platform_device *pdev)
        printk(KERN_INFO "fb%d: %s frame buffer device\n", info->node, info->fix.id);
        return 0;
 out:
-       fb_dealloc_cmap(&info->cmap);
-       kfree(info->pseudo_palette);
+       if (info) {
+               fb_dealloc_cmap(&info->cmap);
+               kfree(info->pseudo_palette);
+       }
        if (remapped_fbuf != NULL)
                iounmap(remapped_fbuf);
        if (remapped_regs != NULL)