]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
OPP: Improve error handling in dev_pm_opp_of_cpumask_add_table()
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 3 Oct 2018 09:42:06 +0000 (15:12 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 4 Oct 2018 03:40:56 +0000 (09:10 +0530)
commit50b6b87c8484da8bb5dcce00f84ec80aee8fc2bd
tree041102715d10180d856b96791f75931d3931da10
parent5ed4cecd75e90232a19afa502cf477925854561e
OPP: Improve error handling in dev_pm_opp_of_cpumask_add_table()

The error handling wasn't appropriate in
dev_pm_opp_of_cpumask_add_table(). For example it returns 0 on success
and also for the case where cpumask is empty or cpu_device wasn't found
for any of the CPUs.

It should really return error on such cases, so that the callers can be
aware of the outcome.

Fix it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/of.c