File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -881,6 +881,7 @@ static const char *const rk3328_critical_clocks[] __initconst = {
881
881
static void __init rk3328_clk_init (struct device_node * np )
882
882
{
883
883
struct rockchip_clk_provider * ctx ;
884
+ unsigned long clk_nr_clks ;
884
885
void __iomem * reg_base ;
885
886
886
887
reg_base = of_iomap (np , 0 );
@@ -889,7 +890,9 @@ static void __init rk3328_clk_init(struct device_node *np)
889
890
return ;
890
891
}
891
892
892
- ctx = rockchip_clk_init (np , reg_base , CLK_NR_CLKS );
893
+ clk_nr_clks = rockchip_clk_find_max_clk_id (rk3328_clk_branches ,
894
+ ARRAY_SIZE (rk3328_clk_branches )) + 1 ;
895
+ ctx = rockchip_clk_init (np , reg_base , clk_nr_clks );
893
896
if (IS_ERR (ctx )) {
894
897
pr_err ("%s: rockchip clk init failed\n" , __func__ );
895
898
iounmap (reg_base );
You can’t perform that action at this time.
0 commit comments