Searched hist:c510f2e436008e55a50b063f2180cb1e63984224 (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/video/ |
| H A D | ipu_common.c | c510f2e436008e55a50b063f2180cb1e63984224 Thu Apr 28 02:07:53 UTC 2016 Peng Fan <van.freenix@gmail.com> video: ipu_common: fix build error
Some toolchains fail to build "clk->rate = (u64)(clk->parent->rate * 16) / div;" And the cast usage is wrong.
Use the following code to fix the issue, " do_div(parent_rate, div); clk->rate = parent_rate; "
Reported-by: Peter Robinson <pbrobinson@gmail.com> Signed-off-by: Peng Fan <van.freenix@gmail.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Tom Rini <trini@konsulko.com> Cc: Anatolij Gustschin <agust@denx.de> Cc: Peter Robinson <pbrobinson@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com> Tested-by: Peter Robinson <pbrobinson@gmail.com>
|