]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
drivers/video: fsl-diu-fb: simplify platforms that have only one port
authorTimur Tabi <timur@freescale.com>
Tue, 16 Oct 2012 22:33:43 +0000 (17:33 -0500)
committerTimur Tabi <timur@freescale.com>
Mon, 26 Nov 2012 19:41:19 +0000 (13:41 -0600)
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 <timur@freescale.com>
drivers/video/fsl-diu-fb.c

index ede9e55413f80ad33e932f48c652785069bb2fb8..5b12e1783fac132557d202067735f5fecd46058f 100644 (file)
@@ -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 */