File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
drivers/media/platform/qcom/venus Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -875,7 +875,7 @@ static int vcodec_domains_get(struct venus_core *core)
875
875
}
876
876
877
877
skip_pmdomains :
878
- if (!core -> has_opp_table )
878
+ if (!core -> res -> opp_pmdomain )
879
879
return 0 ;
880
880
881
881
/* Attach the power domain for setting performance state */
@@ -1007,6 +1007,10 @@ static int core_get_v4(struct venus_core *core)
1007
1007
if (ret )
1008
1008
return ret ;
1009
1009
1010
+ ret = vcodec_domains_get (core );
1011
+ if (ret )
1012
+ return ret ;
1013
+
1010
1014
if (core -> res -> opp_pmdomain ) {
1011
1015
ret = devm_pm_opp_of_add_table (dev );
1012
1016
if (!ret ) {
@@ -1017,10 +1021,6 @@ static int core_get_v4(struct venus_core *core)
1017
1021
}
1018
1022
}
1019
1023
1020
- ret = vcodec_domains_get (core );
1021
- if (ret )
1022
- return ret ;
1023
-
1024
1024
return 0 ;
1025
1025
}
1026
1026
You can’t perform that action at this time.
0 commit comments