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

2016-04-28 Thread Anatolij Gustschin
Hi Stefano, On Thu, 28 Apr 2016 16:29:43 +0200 Stefano Babic sba...@denx.de wrote: ... > Applied to u-boot-imx, thanks ! Thanks! -- Anatolij ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

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

2016-04-28 Thread Stefano Babic
On 28/04/2016 16:20, Peter Robinson wrote: > On Thu, Apr 28, 2016 at 3:07 AM, 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, >> " >>

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

2016-04-28 Thread Peter Robinson
On Thu, Apr 28, 2016 at 3:07 AM, 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; >

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

2016-04-28 Thread Tom Rini
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; > " > >

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

2016-04-27 Thread Peng Fan
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 Signed-off-by: Peng Fan