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 7fcf1ef commit f40056aCopy full SHA for f40056a
drivers/clk/mediatek/clk-mt8173-apmixedsys.c
@@ -152,8 +152,8 @@ static int clk_mt8173_apmixed_probe(struct platform_device *pdev)
152
153
clk_data = mtk_alloc_clk_data(CLK_APMIXED_NR_CLK);
154
if (IS_ERR_OR_NULL(clk_data)) {
155
- iounmap(base);
156
- return -ENOMEM;
+ r = -ENOMEM;
+ goto unmap_io;
157
}
158
159
fhctl_parse_dt(fhctl_node, pllfhs, ARRAY_SIZE(pllfhs));
@@ -188,6 +188,7 @@ static int clk_mt8173_apmixed_probe(struct platform_device *pdev)
188
ARRAY_SIZE(pllfhs), clk_data);
189
free_clk_data:
190
mtk_free_clk_data(clk_data);
191
+unmap_io:
192
iounmap(base);
193
return r;
194
0 commit comments