Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1383955

[PATCH 01/10] PM / OPP: Propagate the error returned by _find_opp_table()

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Viresh Kumar <viresh.kumar@linaro.org>
Newsgroups linux.kernel
Subject [PATCH 01/10] PM / OPP: Propagate the error returned by _find_opp_table()
Date Thu, 21 Apr 2016 11:00:02 +0200
Message-ID <rqiCS-6mQ-7@gated-at.bofh.it> (permalink)
References <rqiCR-6mQ-5@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=PnThkyDhE6ECyxC/ZP3BXi+LCnX5nthAwRMiynRD/ts=; b=hYn7c9+3B+Lm8uaPj1auXsLlIDBq+FUWnhqULv8nsf3xXeqnxftFhfSM5rqZL9YY9d nKCJ0OYol+SzG1PxvZJpPjWdEUfbesoAZ2nRbOmVn35JVQlw99cThjt7wS9EEHL+zSBa Ef+6/woMEsu6JP+nkVcjFs/Rz/+F55HyVZYiw=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=PnThkyDhE6ECyxC/ZP3BXi+LCnX5nthAwRMiynRD/ts=; b=OdlMuwLzyiWuJPcF4oHwX0B9gmPqTE2UUSseM4k4A7/LEiRo3JxxXTcvomF1z6SmI5 qFaKJ1MI7P2cAlpeGH1VEmo+LoUwFZV6DfY6rPB1vvDWP0tYlJdpU3Rvq7+LiZ/3z0xB akfT6V0r97EXyZKDgiexqb0hmUhVe0YG24iZYtjonIng2hnMeD0eXpe71RJnzoVYb/nB V3DeeNZWlKUzo7uKtXqEEZHzGfwpUtpQBCxLbI9Mcznro2qsbyx7DraxpHY2I5qDzm5B NVsGKvrM5h1DgTXvsfBDckwTw0OzodSCJ5CRqMTdvE/UZdqp2zCZLNUHjqgIpNQUrucG 9S/g==
X-Gm-Message-State AOPr4FXBVMYdj255J9ZMnis4pA4feEiGrxJwPme9faQ4y1mtokTgN7TuFf7nUB9v2qXsf2FE
X-Received by 10.66.90.163 with SMTP id bx3mr18981239pab.59.1461229160716; Thu, 21 Apr 2016 01:59:20 -0700 (PDT)
X-Mailer git-send-email 2.7.1.410.g6faf27b
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 22
Organization linux.* mail to news gateway
X-Original-Cc linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, arnd.bergmann@linaro.org, andrew@lunn.ch, gregory.clement@free-electrons.com, jason@lakedaemon.net, sebastian.hesselbarth@gmail.com, thomas.petazzoni@free-electrons.com, Viresh Kumar <viresh.kumar@linaro.org>, linux-kernel@vger.kernel.org
X-Original-Date Thu, 21 Apr 2016 14:28:53 +0530
X-Original-Message-ID <291931fc9dbd6b4fa44f88a2ffde03e1ba51249d.1461228504.git.viresh.kumar@linaro.org>
X-Original-References <cover.1461228504.git.viresh.kumar@linaro.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1383955

Show key headers only | View raw


Don't send -EINVAL and propagate what's received from _find_opp_table().

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
 drivers/base/power/opp/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/base/power/opp/cpu.c b/drivers/base/power/opp/cpu.c
index ba2bdbd932ef..b7411a3cdcb1 100644
--- a/drivers/base/power/opp/cpu.c
+++ b/drivers/base/power/opp/cpu.c
@@ -131,7 +131,7 @@ int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask)
 
 	opp_table = _find_opp_table(cpu_dev);
 	if (IS_ERR(opp_table)) {
-		ret = -EINVAL;
+		ret = PTR_ERR(opp_table);
 		goto unlock;
 	}
 
-- 
2.7.1.410.g6faf27b

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH 01/10] PM / OPP: Propagate the error returned by _find_opp_table() Viresh Kumar <viresh.kumar@linaro.org> - 2016-04-21 11:00 +0200
  Re: [PATCH 01/10] PM / OPP: Propagate the error returned by  _find_opp_table() Stephen Boyd <sboyd@codeaurora.org> - 2016-04-23 00:20 +0200

csiph-web