Skip to content

Commit 8c37d01

Browse files
committed
PM / devfreq: passive: Fix get_target_freq when not using required-opp
The 86ad9a2 ("PM / devfreq: Add required OPPs support to passive governor") supported the required-opp property for using devfreq passive governor. But, 86ad9a2 has caused the problem on use-case when required-opp is not used such as exynos-bus.c devfreq driver. So that fix the get_target_freq of passive governor for supporting the case of when required-opp is not used. Fixes: 86ad9a2 ("PM / devfreq: Add required OPPs support to passive governor") Signed-off-by: Chanwoo Choi <[email protected]>
1 parent 6b61f55 commit 8c37d01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/devfreq/governor_passive.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,15 @@ static int devfreq_passive_get_target_freq(struct devfreq *devfreq,
6565
dev_pm_opp_put(p_opp);
6666

6767
if (IS_ERR(opp))
68-
return PTR_ERR(opp);
68+
goto no_required_opp;
6969

7070
*freq = dev_pm_opp_get_freq(opp);
7171
dev_pm_opp_put(opp);
7272

7373
return 0;
7474
}
7575

76+
no_required_opp:
7677
/*
7778
* Get the OPP table's index of decided frequency by governor
7879
* of parent device.

0 commit comments

Comments
 (0)