File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -555,6 +555,8 @@ static int mtk_topckgen_init(struct platform_device *pdev)
555
555
return PTR_ERR (base );
556
556
557
557
clk_data = mtk_alloc_clk_data (CLK_TOP_NR_CLK );
558
+ if (!clk_data )
559
+ return - ENOMEM ;
558
560
559
561
mtk_clk_register_fixed_clks (top_fixed_clks , ARRAY_SIZE (top_fixed_clks ),
560
562
clk_data );
@@ -579,6 +581,8 @@ static int mtk_infrasys_init(struct platform_device *pdev)
579
581
struct clk_hw_onecell_data * clk_data ;
580
582
581
583
clk_data = mtk_alloc_clk_data (CLK_INFRA_NR_CLK );
584
+ if (!clk_data )
585
+ return - ENOMEM ;
582
586
583
587
mtk_clk_register_gates (& pdev -> dev , node , infra_clks ,
584
588
ARRAY_SIZE (infra_clks ), clk_data );
@@ -602,6 +606,8 @@ static int mtk_pericfg_init(struct platform_device *pdev)
602
606
return PTR_ERR (base );
603
607
604
608
clk_data = mtk_alloc_clk_data (CLK_PERI_NR_CLK );
609
+ if (!clk_data )
610
+ return - ENOMEM ;
605
611
606
612
mtk_clk_register_gates (& pdev -> dev , node , peri_clks ,
607
613
ARRAY_SIZE (peri_clks ), clk_data );
You can’t perform that action at this time.
0 commit comments