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

PM / devfreq: exynos: 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.

Acked-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 2ff8fe13
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -158,11 +158,9 @@ static void exynos_bus_exit(struct device *dev)

	dev_pm_opp_of_remove_table(dev);
	clk_disable_unprepare(bus->clk);
	if (bus->opp_table) {
	dev_pm_opp_put_regulators(bus->opp_table);
	bus->opp_table = NULL;
}
}

static void exynos_bus_passive_exit(struct device *dev)
{
@@ -444,10 +442,8 @@ err:
	dev_pm_opp_of_remove_table(dev);
	clk_disable_unprepare(bus->clk);
err_reg:
	if (!passive) {
	dev_pm_opp_put_regulators(bus->opp_table);
	bus->opp_table = NULL;
	}

	return ret;
}