Skip to content
Commit c510f2e4 authored by Peng Fan's avatar Peng Fan Committed by Stefano Babic
Browse files

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: default avatarPeter Robinson <pbrobinson@gmail.com>
Signed-off-by: default avatarPeng 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: default avatarTom Rini <trini@konsulko.com>
Tested-by: default avatarPeter Robinson <pbrobinson@gmail.com>
parent e25b369c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment