commit | 3cb4f25cc702db17455583599d0940c81337a17a | [log] [tgz] |
---|---|---|
author | Peng Fan <van.freenix@gmail.com> | Wed Mar 09 16:07:21 2016 +0800 |
committer | Anatolij Gustschin <agust@denx.de> | Mon Mar 14 22:47:41 2016 +0100 |
tree | c8ae22e1b2687a89fd290b4a5da5db4408ecc03f | |
parent | c87c30e3ba9ab110c031c14d1f349118d32041c1 [diff] |
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>