diff options
| author | Lukasz Luba <[email protected]> | 2020-12-15 15:42:21 +0000 |
|---|---|---|
| committer | Daniel Lezcano <[email protected]> | 2020-12-15 16:03:56 +0000 |
| commit | 4401117bf7fc11dc738c0963fa0c94814abc8dcd (patch) | |
| tree | f93e84686bc3f01f5c6e548a004df1aebc6fbc16 /drivers/gpu/drm/lima/lima_devfreq.c | |
| parent | thermal/drivers/rcar: Remove notification usage (diff) | |
| download | kernel-4401117bf7fc11dc738c0963fa0c94814abc8dcd.tar.gz kernel-4401117bf7fc11dc738c0963fa0c94814abc8dcd.zip | |
thermal/drivers/devfreq_cooling: Fix the build when !ENERGY_MODEL
Prevent build failure if the option CONFIG_ENERGY_MODEL is not set. The
devfreq cooling is able to operate without the Energy Model.
Don't use dev->em_pd directly and use local pointer.
Fixes: 615510fe13bd2 ("thermal: devfreq_cooling: remove old power model and use EM")
Reported-by: Stephen Rothwell <[email protected]>
Signed-off-by: Lukasz Luba <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/lima/lima_devfreq.c')
0 files changed, 0 insertions, 0 deletions
