diff options
author | Timur Tabi <timur@freescale.com> | 2012-10-16 18:33:43 -0400 |
---|---|---|
committer | Timur Tabi <timur@freescale.com> | 2012-11-26 14:41:19 -0500 |
commit | 2867173572d5ca5084e8836c8a1d0cafa95b729b (patch) | |
tree | 890650cb1dd96a0117864ba6a882246e40ce4348 /drivers/video/fsl-diu-fb.c | |
parent | a57c188e6c341ada7da5e526be7ae34f644b1424 (diff) |
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>
Diffstat (limited to 'drivers/video/fsl-diu-fb.c')
-rw-r--r-- | drivers/video/fsl-diu-fb.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
792 | 792 | ||
793 | hw = data->diu_reg; | 793 | hw = data->diu_reg; |
794 | 794 | ||
795 | diu_ops.set_monitor_port(data->monitor_port); | 795 | if (diu_ops.set_monitor_port) |
796 | diu_ops.set_monitor_port(data->monitor_port); | ||
796 | gamma_table_base = data->gamma; | 797 | gamma_table_base = data->gamma; |
797 | 798 | ||
798 | /* Prep for DIU init - gamma table, cursor table */ | 799 | /* Prep for DIU init - gamma table, cursor table */ |