Commit 72ba9e22 authored by Viresh Kumar's avatar Viresh Kumar
Browse files

drm/lima: 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 avatarQiang Yu <yuq825@gmail.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 81456872
Loading
Loading
Loading
Loading
+4 −9
Original line number Diff line number Diff line
@@ -110,16 +110,11 @@ void lima_devfreq_fini(struct lima_device *ldev)
		devfreq->opp_of_table_added = false;
	}

	if (devfreq->regulators_opp_table) {
	dev_pm_opp_put_regulators(devfreq->regulators_opp_table);
		devfreq->regulators_opp_table = NULL;
	}

	if (devfreq->clkname_opp_table) {
	dev_pm_opp_put_clkname(devfreq->clkname_opp_table);
	devfreq->regulators_opp_table = NULL;
	devfreq->clkname_opp_table = NULL;
}
}

int lima_devfreq_init(struct lima_device *ldev)
{