mirror of
https://github.com/torvalds/linux
synced 2024-09-27 06:50:51 +00:00
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 <timur@freescale.com>
This commit is contained in:
parent
a57c188e6c
commit
2867173572
|
@ -792,7 +792,8 @@ static void update_lcdc(struct fb_info *info)
|
||||||
|
|
||||||
hw = data->diu_reg;
|
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;
|
gamma_table_base = data->gamma;
|
||||||
|
|
||||||
/* Prep for DIU init - gamma table, cursor table */
|
/* Prep for DIU init - gamma table, cursor table */
|
||||||
|
|
Loading…
Reference in a new issue