Skip to content

Commit

Permalink
drivers/video: fsl-diu-fb: simplify platforms that have only one port
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Timur Tabi committed Nov 26, 2012
1 parent a57c188 commit 2867173
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/video/fsl-diu-fb.c
Original file line number Diff line number Diff line change
@@ -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 */

0 comments on commit 2867173

Please sign in to comment.