[U-Boot] [PATCH] video: ipu_common: fix build error

Tom Rini trini at konsulko.com
Thu Apr 28 14:52:10 CEST 2016


On Thu, Apr 28, 2016 at 10:07:53AM +0800, Peng Fan wrote:

> 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 at gmail.com>
> Signed-off-by: Peng Fan <van.freenix at gmail.com>
> Cc: Stefano Babic <sbabic at denx.de>
> Cc: Fabio Estevam <fabio.estevam at nxp.com>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: Anatolij Gustschin <agust at denx.de>
> Cc: Peter Robinson <pbrobinson at gmail.com>

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160428/755484ed/attachment.sig>


More information about the U-Boot mailing list