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)
875875 }
876876
877877skip_pmdomains :
878- if (!core -> has_opp_table )
878+ if (!core -> res -> opp_pmdomain )
879879 return 0 ;
880880
881881 /* Attach the power domain for setting performance state */
@@ -1007,6 +1007,10 @@ static int core_get_v4(struct venus_core *core)
10071007 if (ret )
10081008 return ret ;
10091009
1010+ ret = vcodec_domains_get (core );
1011+ if (ret )
1012+ return ret ;
1013+
10101014 if (core -> res -> opp_pmdomain ) {
10111015 ret = devm_pm_opp_of_add_table (dev );
10121016 if (!ret ) {
@@ -1017,10 +1021,6 @@ static int core_get_v4(struct venus_core *core)
10171021 }
10181022 }
10191023
1020- ret = vcodec_domains_get (core );
1021- if (ret )
1022- return ret ;
1023-
10241024 return 0 ;
10251025}
10261026
You can’t perform that action at this time.
0 commit comments