gpu: ipu-v3: do not divide by zero if the pixel clock is too large
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 7 Jan 2015 23:04:04 +0000 (00:04 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 23 Feb 2015 16:18:59 +0000 (17:18 +0100)
commit89ce4b0f4e7adda75ac7eec6aaa9b3516390cef2
treec0e2cabe2de7afdc79eecbc21ed7d1c0a804a363
parentc517d838eb7d07bbe9507871fab3931deccff539
gpu: ipu-v3: do not divide by zero if the pixel clock is too large

Even if an unsupported mode with a pixel clock larger than two times the
264 MHz IPU HSP clock is set, don't divide by zero.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/ipu-v3/ipu-di.c