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 @@ -737,6 +737,8 @@ static int clk_mt6765_apmixed_probe(struct platform_device *pdev)
737
737
return PTR_ERR (base );
738
738
739
739
clk_data = mtk_alloc_clk_data (CLK_APMIXED_NR_CLK );
740
+ if (!clk_data )
741
+ return - ENOMEM ;
740
742
741
743
mtk_clk_register_plls (node , plls , ARRAY_SIZE (plls ), clk_data );
742
744
@@ -769,6 +771,8 @@ static int clk_mt6765_top_probe(struct platform_device *pdev)
769
771
return PTR_ERR (base );
770
772
771
773
clk_data = mtk_alloc_clk_data (CLK_TOP_NR_CLK );
774
+ if (!clk_data )
775
+ return - ENOMEM ;
772
776
773
777
mtk_clk_register_fixed_clks (fixed_clks , ARRAY_SIZE (fixed_clks ),
774
778
clk_data );
@@ -807,6 +811,8 @@ static int clk_mt6765_ifr_probe(struct platform_device *pdev)
807
811
return PTR_ERR (base );
808
812
809
813
clk_data = mtk_alloc_clk_data (CLK_IFR_NR_CLK );
814
+ if (!clk_data )
815
+ return - ENOMEM ;
810
816
811
817
mtk_clk_register_gates (& pdev -> dev , node , ifr_clks ,
812
818
ARRAY_SIZE (ifr_clks ), clk_data );
You can’t perform that action at this time.
0 commit comments