fbdev: dpu20: fix compilation error.
authorJiun Yu <jiun.yu@samsung.com>
Mon, 4 Jun 2018 01:47:42 +0000 (10:47 +0900)
committerYoungsoo Kim <youngss.kim@samsung.com>
Fri, 15 Jun 2018 23:31:36 +0000 (08:31 +0900)
Change-Id: If2d8a16850ab69193c3930f1ae683fd7f51ff577
Signed-off-by: Jiun Yu <jiun.yu@samsung.com>
drivers/video/fbdev/exynos/dpu20/decon_core.c

index 19385bcf821e6302ff924666c5d252c2b8e21a34..8acc72d72fd620d47e77d610207bcb8c825daed9 100644 (file)
@@ -3026,7 +3026,9 @@ static int decon_fb_alloc_memory(struct decon_device *decon, struct decon_win *w
 {
        struct decon_lcd *lcd_info = decon->lcd_info;
        struct fb_info *fbi = win->fbinfo;
+#if defined(CONFIG_EXYNOS_DISPLAYPORT)
        struct displayport_device *displayport;
+#endif
        struct dsim_device *dsim;
        struct device *dev;
        unsigned int real_size, virt_size, size;
@@ -3095,8 +3097,10 @@ static int decon_fb_alloc_memory(struct decon_device *decon, struct decon_win *w
        win->plane_cnt = 1;
 
        if (decon->dt.out_type == DECON_OUT_DP) {
+#if defined(CONFIG_EXYNOS_DISPLAYPORT)
                displayport = v4l2_get_subdevdata(decon->out_sd[0]);
                dev = displayport->dev;
+#endif
        } else { /* DSI case */
                dsim = v4l2_get_subdevdata(decon->out_sd[0]);
                dev = dsim->dev;
@@ -3353,7 +3357,7 @@ static void decon_parse_dt(struct decon_device *decon)
                decon->bts.ppc = 2UL;
        }
 
-       decon_info("PPC(%d)\n", decon->bts.ppc);
+       decon_info("PPC(%llu)\n", decon->bts.ppc);
 
        if (decon->dt.out_type == DECON_OUT_DSI) {
                ret = of_property_read_u32_index(dev->of_node, "out_idx", 0,