diff options
author | Clément Péron <peron.clem@gmail.com> | 2020-07-10 11:54:01 +0200 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2020-08-07 10:11:26 -0600 |
commit | 81f2fbe62cb54b6cf3d91078c4d49451ba7b9877 (patch) | |
tree | d58b4b61a74211094dbdc0b80f3cbdada8ae3477 /drivers/gpu/drm/panfrost/panfrost_devfreq.h | |
parent | ed85df3f60740bb4be23fbc2db283d59b361a834 (diff) | |
download | linux-81f2fbe62cb54b6cf3d91078c4d49451ba7b9877.tar.gz |
drm/panfrost: properly handle error in probe
Introduce a boolean to know if opp table has been added.
With this, we can call panfrost_devfreq_fini() in case of error
and release what has been initialised.
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Signed-off-by: Clément Péron <peron.clem@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200710095409.407087-7-peron.clem@gmail.com
Diffstat (limited to 'drivers/gpu/drm/panfrost/panfrost_devfreq.h')
-rw-r--r-- | drivers/gpu/drm/panfrost/panfrost_devfreq.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panfrost/panfrost_devfreq.h b/drivers/gpu/drm/panfrost/panfrost_devfreq.h index 3392df1020be..210269944687 100644 --- a/drivers/gpu/drm/panfrost/panfrost_devfreq.h +++ b/drivers/gpu/drm/panfrost/panfrost_devfreq.h @@ -15,6 +15,7 @@ struct panfrost_device; struct panfrost_devfreq { struct devfreq *devfreq; struct thermal_cooling_device *cooling; + bool opp_of_table_added; ktime_t busy_time; ktime_t idle_time; |