]> Pileus Git - ~andy/linux/blobdiff - drivers/video/omap2/vrfb.c
OMAPDSS: alloc dssdevs dynamically
[~andy/linux] / drivers / video / omap2 / vrfb.c
index 4e5b960c32c88bbcab1ec7e31c1f1eb7772898d7..7e990220ad2a6f52a25ff861f754d86e447a8358 100644 (file)
@@ -179,8 +179,10 @@ void omap_vrfb_setup(struct vrfb *vrfb, unsigned long paddr,
                pixel_size_exp = 2;
        else if (bytespp == 2)
                pixel_size_exp = 1;
-       else
+       else {
                BUG();
+               return;
+       }
 
        vrfb_width = ALIGN(width * bytespp, VRFB_PAGE_WIDTH) / bytespp;
        vrfb_height = ALIGN(height, VRFB_PAGE_HEIGHT);