Commit b66ba5b5 authored by Viresh Kumar's avatar Viresh Kumar
Browse files

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: default avatarSteven Price <steven.price@arm.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 72ba9e22
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -170,11 +170,9 @@ 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;
}
}

void panfrost_devfreq_resume(struct panfrost_device *pfdev)
{