diff --git a/drivers/amlogic/clk/clk-mpll.c b/drivers/amlogic/clk/clk-mpll.c index 435055be8820..66bd875948d3 100644 --- a/drivers/amlogic/clk/clk-mpll.c +++ b/drivers/amlogic/clk/clk-mpll.c @@ -28,7 +28,7 @@ #include "clkc.h" /* #undef pr_debug */ /* #define pr_debug pr_info */ -#define SDM_MAX 16384 +#define SDM_MAX 16384ULL #define MAX_RATE 500000000 #define MIN_RATE 5000000 diff --git a/drivers/amlogic/clk/gxl/clk_misc.c b/drivers/amlogic/clk/gxl/clk_misc.c index 774bf09bb905..26e495c979ec 100644 --- a/drivers/amlogic/clk/gxl/clk_misc.c +++ b/drivers/amlogic/clk/gxl/clk_misc.c @@ -100,6 +100,7 @@ static struct clk_divider amclk_div = { .shift = 0, .width = 8, .lock = &clk_lock, + .flags = CLK_DIVIDER_ROUND_CLOSEST, .hw.init = &(struct clk_init_data){ .name = "amclk_div", .ops = &clk_divider_ops,