diff options
| -rw-r--r-- | drivers/video/fbdev/omap2/dss/dispc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/fbdev/omap2/dss/dispc.c b/drivers/video/fbdev/omap2/dss/dispc.c index 8805266a52f4..1123111d3940 100644 --- a/drivers/video/fbdev/omap2/dss/dispc.c +++ b/drivers/video/fbdev/omap2/dss/dispc.c | |||
| @@ -2322,6 +2322,11 @@ static int dispc_ovl_calc_scaling(unsigned long pclk, unsigned long lclk, | |||
| 2322 | if (width == out_width && height == out_height) | 2322 | if (width == out_width && height == out_height) |
| 2323 | return 0; | 2323 | return 0; |
| 2324 | 2324 | ||
| 2325 | if (pclk == 0 || mgr_timings->pixelclock == 0) { | ||
| 2326 | DSSERR("cannot calculate scaling settings: pclk is zero\n"); | ||
| 2327 | return -EINVAL; | ||
| 2328 | } | ||
| 2329 | |||
| 2325 | if ((caps & OMAP_DSS_OVL_CAP_SCALE) == 0) | 2330 | if ((caps & OMAP_DSS_OVL_CAP_SCALE) == 0) |
| 2326 | return -EINVAL; | 2331 | return -EINVAL; |
| 2327 | 2332 | ||
