b/drivers/video/omap2/dss/display.c
@@ -340,10 +340,11 @@ int omapdss_default_get_recommended_bpp(struct
omap_dss_device *dssdev)
return 24;
else
return 16;
+
case OMAP_DISPLAY_TYPE_VENC:
case OMAP_DISPLAY_TYPE_SDI:
return 24;
- return 24;
+
default:
BUG();
}
@@ -450,10 +450,6 @@ static void venc_power_off(struct omap_dss_device *dssdev)
venc_enable_clocks(0);
}
-
-
-
-
/* driver */
static int venc_panel_probe(struct omap_dss_device *dssdev)
{
@@ -654,8 +650,6 @@ static struct omap_dss_driver venc_driver = {
};
/* driver end */
-
-
int venc_init(struct platform_device *pdev)
{
u8 rev_id;
b/drivers/video/omap2/omapfb/omapfb-main.c
@@ -1771,8 +1771,7 @@ static int omapfb_fb_init(struct omapfb2_device
*fbdev, struct fb_info *fbi)
var->bits_per_pixel = 32;
break;
default:
- dev_err(fbdev->dev, "illegal display "
- "bpp\n");
+ dev_err(fbdev->dev, "illegal display bpp\n");
return -EINVAL;
}