From: Timur Tabi Date: Tue, 16 Oct 2012 22:33:43 +0000 (-0500) Subject: drivers/video: fsl-diu-fb: simplify platforms that have only one port X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2867173572d5ca5084e8836c8a1d0cafa95b729b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drivers/video: fsl-diu-fb: simplify platforms that have only one port Allow the platform code not to define a value for diu_ops.set_monitor_port. This would be for platforms that only have one monitor port. set_monitor_port() will never be called with an unsupported port anyway. Signed-off-by: Timur Tabi --- diff --git a/drivers/video/fsl-diu-fb.c b/drivers/video/fsl-diu-fb.c index ede9e55413f8..5b12e1783fac 100644 --- a/drivers/video/fsl-diu-fb.c +++ b/drivers/video/fsl-diu-fb.c @@ -792,7 +792,8 @@ static void update_lcdc(struct fb_info *info) hw = data->diu_reg; - diu_ops.set_monitor_port(data->monitor_port); + if (diu_ops.set_monitor_port) + diu_ops.set_monitor_port(data->monitor_port); gamma_table_base = data->gamma; /* Prep for DIU init - gamma table, cursor table */