]> git.sur5r.net Git - u-boot/commit
video: ipu: avoid overflow issue
authorPeng Fan <van.freenix@gmail.com>
Wed, 9 Mar 2016 08:07:21 +0000 (16:07 +0800)
committerAnatolij Gustschin <agust@denx.de>
Mon, 14 Mar 2016 21:47:41 +0000 (22:47 +0100)
commit3cb4f25cc702db17455583599d0940c81337a17a
treec8ae22e1b2687a89fd290b4a5da5db4408ecc03f
parentc87c30e3ba9ab110c031c14d1f349118d32041c1
video: ipu: avoid overflow issue

Multiplication, as "clk->parent->rate * 16" may overflow. So use
do_div to avoid such issue.

Signed-off-by: Peng Fan <van.freenix@gmail.com>
Signed-off-by: Sandor Yu <sandor.yu@nxp.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
drivers/video/ipu_common.c