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 976509b commit 0e1d9caCopy full SHA for 0e1d9ca
drivers/opp/core.c
@@ -1101,7 +1101,7 @@ static struct opp_table *_allocate_opp_table(struct device *dev, int index)
1101
ret = dev_pm_opp_of_find_icc_paths(dev, opp_table);
1102
if (ret) {
1103
if (ret == -EPROBE_DEFER)
1104
- goto remove_opp_dev;
+ goto put_clk;
1105
1106
dev_warn(dev, "%s: Error finding interconnect paths: %d\n",
1107
__func__, ret);
@@ -1113,6 +1113,9 @@ static struct opp_table *_allocate_opp_table(struct device *dev, int index)
1113
1114
return opp_table;
1115
1116
+put_clk:
1117
+ if (!IS_ERR(opp_table->clk))
1118
+ clk_put(opp_table->clk);
1119
remove_opp_dev:
1120
_remove_opp_dev(opp_dev, opp_table);
1121
err:
0 commit comments