Peng Fan c510f2e436 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>
2016-04-28 16:28:45 +02:00
..
2015-11-02 10:38:00 +09:00
2016-03-24 09:47:43 +01:00
2016-01-27 15:32:05 +01:00
2016-03-14 19:21:44 -04:00
2016-02-05 12:47:21 +08:00
2016-04-25 15:10:43 -04:00
2016-02-06 12:00:59 +01:00
2016-03-14 19:21:44 -04:00
2016-04-28 16:28:45 +02:00
2016-04-01 17:18:12 -04:00