[media] omap3isp: Fix division by 0
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 25 Sep 2014 12:22:00 +0000 (09:22 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 23 Dec 2014 10:43:54 +0000 (08:43 -0200)
commitaadec012eabf0e5147103cfd2ffde27e5aad65e2
treebe00b778f3a96ecd32a92892cb6cf949de4e2c00
parent584ca0252abf31388cacbdb3018aab2c70362d8d
[media] omap3isp: Fix division by 0

If the requested clock rate passed to the XCLK set_rate or round_rate
operation is 0, the driver will try to divide by 0. Fix this.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/omap3isp/isp.c