commit | b2e3150b7e8ca8c81c13b4eb417cf49287b9c321 | [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 | 888b9fb67e7a0365b40f5b4809e2f412e288a234 [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>