blob: 003ef3c2dc01885c0c4cc71a10da78b785843403 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- u-boot-2016.05.orig/drivers/video/ipu_common.c 2016-05-16 16:40:32.000000000 +0200
+++ u-boot-2016.05/drivers/video/ipu_common.c 2016-06-11 22:10:53.808259263 +0200
@@ -352,7 +352,7 @@ static int ipu_pixel_clk_set_rate(struct
*/
__raw_writel((div / 16) << 16, DI_BS_CLKGEN1(clk->id));
- clk->rate = (u64)(clk->parent->rate * 16) / div;
+ clk->rate = (u64)lldiv(clk->parent->rate * 16, div);
return 0;
}
|