From: Jiun Yu Date: Mon, 4 Jun 2018 01:47:42 +0000 (+0900) Subject: fbdev: dpu20: fix compilation error. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8316dec5c35360b5dcbc84c8f386846b7bb4c348;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git fbdev: dpu20: fix compilation error. Change-Id: If2d8a16850ab69193c3930f1ae683fd7f51ff577 Signed-off-by: Jiun Yu --- diff --git a/drivers/video/fbdev/exynos/dpu20/decon_core.c b/drivers/video/fbdev/exynos/dpu20/decon_core.c index 19385bcf821e..8acc72d72fd6 100644 --- a/drivers/video/fbdev/exynos/dpu20/decon_core.c +++ b/drivers/video/fbdev/exynos/dpu20/decon_core.c @@ -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,