diff options
author | Peng Fan <van.freenix@gmail.com> | 2016-03-09 16:07:21 +0800 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2016-03-14 22:47:41 +0100 |
commit | 3cb4f25cc702db17455583599d0940c81337a17a (patch) | |
tree | c8ae22e1b2687a89fd290b4a5da5db4408ecc03f /drivers/spi/tegra_spi.h | |
parent | c87c30e3ba9ab110c031c14d1f349118d32041c1 (diff) | |
download | u-boot-imx-3cb4f25cc702db17455583599d0940c81337a17a.zip u-boot-imx-3cb4f25cc702db17455583599d0940c81337a17a.tar.gz u-boot-imx-3cb4f25cc702db17455583599d0940c81337a17a.tar.bz2 |
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>
Diffstat (limited to 'drivers/spi/tegra_spi.h')
0 files changed, 0 insertions, 0 deletions