File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1092,7 +1092,7 @@ static struct opp_table *_allocate_opp_table(struct device *dev, int index)
1092
1092
if (IS_ERR (opp_table -> clk )) {
1093
1093
ret = PTR_ERR (opp_table -> clk );
1094
1094
if (ret == - EPROBE_DEFER )
1095
- goto err ;
1095
+ goto remove_opp_dev ;
1096
1096
1097
1097
dev_dbg (dev , "%s: Couldn't find clock: %d\n" , __func__ , ret );
1098
1098
}
@@ -1101,7 +1101,7 @@ static struct opp_table *_allocate_opp_table(struct device *dev, int index)
1101
1101
ret = dev_pm_opp_of_find_icc_paths (dev , opp_table );
1102
1102
if (ret ) {
1103
1103
if (ret == - EPROBE_DEFER )
1104
- goto err ;
1104
+ goto remove_opp_dev ;
1105
1105
1106
1106
dev_warn (dev , "%s: Error finding interconnect paths: %d\n" ,
1107
1107
__func__ , ret );
@@ -1113,6 +1113,8 @@ static struct opp_table *_allocate_opp_table(struct device *dev, int index)
1113
1113
1114
1114
return opp_table ;
1115
1115
1116
+ remove_opp_dev :
1117
+ _remove_opp_dev (opp_dev , opp_table );
1116
1118
err :
1117
1119
kfree (opp_table );
1118
1120
return ERR_PTR (ret );
You can’t perform that action at this time.
0 commit comments