mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-06 05:06:29 +00:00
media: venus: 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. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
This commit is contained in:
parent
b66ba5b593
commit
e91e3d902b
@ -898,8 +898,7 @@ static void core_put_v4(struct device *dev)
|
|||||||
|
|
||||||
if (core->has_opp_table)
|
if (core->has_opp_table)
|
||||||
dev_pm_opp_of_remove_table(dev);
|
dev_pm_opp_of_remove_table(dev);
|
||||||
if (core->opp_table)
|
dev_pm_opp_put_clkname(core->opp_table);
|
||||||
dev_pm_opp_put_clkname(core->opp_table);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user