PM / OPP: Propagate error properly from dev_pm_opp_set_sharing_cpus()
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 5 Nov 2015 08:51:18 +0000 (14:21 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 6 Nov 2015 22:59:41 +0000 (23:59 +0100)
commit1794ec1f9585501e4ed4390f5a5d396fd28c63ce
treefc73ae47399c3b88be386ce34690a20c3e88f0c4
parentad623c31485581d6b082ef92429db3b728739cd8
PM / OPP: Propagate error properly from dev_pm_opp_set_sharing_cpus()

We are returning 0 even in case of errors, fix it.

Fixes: 8d4d4e98acd6 ("PM / OPP: Add helpers for initializing CPU OPPs")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: 4.3 <stable@vger.kernel.org> # 4.3
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp/cpu.c