We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b826810 commit 1f57f78Copy full SHA for 1f57f78
drivers/clk/mediatek/clk-mt6779.c
@@ -1217,6 +1217,8 @@ static int clk_mt6779_apmixed_probe(struct platform_device *pdev)
1217
struct device_node *node = pdev->dev.of_node;
1218
1219
clk_data = mtk_alloc_clk_data(CLK_APMIXED_NR_CLK);
1220
+ if (!clk_data)
1221
+ return -ENOMEM;
1222
1223
mtk_clk_register_plls(node, plls, ARRAY_SIZE(plls), clk_data);
1224
@@ -1237,6 +1239,8 @@ static int clk_mt6779_top_probe(struct platform_device *pdev)
1237
1239
return PTR_ERR(base);
1238
1240
1241
clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK);
1242
1243
1244
1245
mtk_clk_register_fixed_clks(top_fixed_clks, ARRAY_SIZE(top_fixed_clks),
1246
clk_data);
0 commit comments