From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Thu, 28 Apr 2016 08:52:10 -0400 Subject: [U-Boot] [PATCH] video: ipu_common: fix build error In-Reply-To: <1461809273-4603-1-git-send-email-van.freenix@gmail.com> References: <1461809273-4603-1-git-send-email-van.freenix@gmail.com> Message-ID: <20160428125210.GL19598@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Signed-off-by: Peng Fan > Cc: Stefano Babic > Cc: Fabio Estevam > Cc: Tom Rini > Cc: Anatolij Gustschin > Cc: Peter Robinson Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: