Skip to content

Commit 3b01940

Browse files
Dikshita Agarwalstorulf
authored andcommitted
media: venus: use device managed APIs for power domains
Use devres-enabled version of power domain attach APIs. Signed-off-by: Dikshita Agarwal <[email protected]> Reviewed-by: Bryan O'Donoghue <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent b6cee65 commit 3b01940

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/media/platform/qcom/venus/pm_helpers.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ static int vcodec_domains_get(struct venus_core *core)
876876
if (!res->vcodec_pmdomains_num)
877877
goto skip_pmdomains;
878878

879-
ret = dev_pm_domain_attach_list(dev, &vcodec_data, &core->pmdomains);
879+
ret = devm_pm_domain_attach_list(dev, &vcodec_data, &core->pmdomains);
880880
if (ret < 0)
881881
return ret;
882882

@@ -902,14 +902,11 @@ static int vcodec_domains_get(struct venus_core *core)
902902
return 0;
903903

904904
opp_attach_err:
905-
dev_pm_domain_detach_list(core->pmdomains);
906905
return ret;
907906
}
908907

909908
static void vcodec_domains_put(struct venus_core *core)
910909
{
911-
dev_pm_domain_detach_list(core->pmdomains);
912-
913910
if (!core->has_opp_table)
914911
return;
915912

0 commit comments

Comments
 (0)