summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/panfrost/panfrost_devfreq.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2020-11-06 12:18:39 +0530
committerViresh Kumar <viresh.kumar@linaro.org>2020-12-09 11:21:12 +0530
commitb66ba5b5938f8a51d4cb97d1392065d09551bc75 (patch)
tree18d5ec4717386bd3ea24ceaecfec4aa26c4cabb6 /drivers/gpu/drm/panfrost/panfrost_devfreq.c
parent72ba9e226fac8a9958b5201428a387c348515289 (diff)
downloadlinux-stable-b66ba5b5938f8a51d4cb97d1392065d09551bc75.tar.gz
linux-stable-b66ba5b5938f8a51d4cb97d1392065d09551bc75.tar.bz2
linux-stable-b66ba5b5938f8a51d4cb97d1392065d09551bc75.zip
drm/panfrost: dev_pm_opp_put_*() accepts NULL argument
The dev_pm_opp_put_*() APIs now accepts a NULL opp_table pointer and so there is no need for us to carry the extra check. Drop them. Reviewed-by: Steven Price <steven.price@arm.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/gpu/drm/panfrost/panfrost_devfreq.c')
-rw-r--r--drivers/gpu/drm/panfrost/panfrost_devfreq.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/panfrost/panfrost_devfreq.c b/drivers/gpu/drm/panfrost/panfrost_devfreq.c
index 8ab025d0035f..97b5abc7c188 100644
--- a/drivers/gpu/drm/panfrost/panfrost_devfreq.c
+++ b/drivers/gpu/drm/panfrost/panfrost_devfreq.c
@@ -170,10 +170,8 @@ void panfrost_devfreq_fini(struct panfrost_device *pfdev)
pfdevfreq->opp_of_table_added = false;
}
- if (pfdevfreq->regulators_opp_table) {
- dev_pm_opp_put_regulators(pfdevfreq->regulators_opp_table);
- pfdevfreq->regulators_opp_table = NULL;
- }
+ dev_pm_opp_put_regulators(pfdevfreq->regulators_opp_table);
+ pfdevfreq->regulators_opp_table = NULL;
}
void panfrost_devfreq_resume(struct panfrost_device *pfdev)