Message ID | 20191122100919.284328583@linuxfoundation.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp62331ilf; Fri, 22 Nov 2019 03:13:02 -0800 (PST) X-Google-Smtp-Source: APXvYqwwO6/30M57+j6je4J0Kw06tc4oGLPldmYJ3eYXBbGnfMqyPmCyaNvPc/Jj9y0IWLK2/l1Z X-Received: by 2002:a17:906:6006:: with SMTP id o6mr21217770ejj.51.1574421084685; Fri, 22 Nov 2019 03:11:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574421084; cv=none; d=google.com; s=arc-20160816; b=tQ+ly4jM9Ja+iv8F2njUHsC65QFaGICfl3MUMUD2AIcErc0dCmpb6/DQOZDdut+qFg tNutKLhW02FBDbNdTKsu9ayp6bTwFz3YvwCfWmIqsqVd0AIlZuePl9B4md3y0HYZ8dFu nBxMKl7xtWs94pk+4Dy2sdwkCf8c72Nl89q784WMIIk7nwahSD+uesmcEGARfNHz7O06 dnH/L3kzjrRNAjV7vskWSmxPoV01ASfdcxLNTQsIz7Fvn103zhJAD/8JnHQ5yCdwYVWA vFHaAChv7FaMZtoV9pzq868pZWhajCQUIWT9HebtNAFY1g2ir95hwkMVMKDZx76wVTwB 7DjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9tw/U3lscs48Y8qlV6AlFm4jR10vWHSZ46J42qbLuZ4=; b=j0PMCrI+CVVCvRsxalilCGI4dGPOVu/YzoKsFCx9WVPDYoJeBst4DGqyQTcHnKrq/d XC4y5TnnVPInfjivyHh2KvvqqAdim82jmpsdbPZnDd0NH8p+VaTZZH2zHg8lcOTaVyYE R6SCgzTDhLcSTdl3IFG0kqEjlG7ONYryYApl3oRO6+ErWDJuRuPI61oAyHMDlqns1cTE GI9+rGedrA5S+Vl9iOwbzujTT4cIPnZkE5m1/shvz8ZdB7McUbavLlWIRefbDD/bfoRy txcQY84YSlhE/KtTFIwn2Z5pjU1/knEiHc16HN5BtdWvo2fRTH706ec82ufjc5aE5vzy gXmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ht4d1YEx; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c24si3924123ejs.366.2019.11.22.03.11.24; Fri, 22 Nov 2019 03:11:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ht4d1YEx; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726852AbfKVLLU (ORCPT <rfc822;ralph.siemsen@linaro.org> + 15 others); Fri, 22 Nov 2019 06:11:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:51382 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730195AbfKVK7w (ORCPT <rfc822;stable@vger.kernel.org>); Fri, 22 Nov 2019 05:59:52 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A3CA220706; Fri, 22 Nov 2019 10:59:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574420392; bh=0+tj+ChrT6Rg6cUA04EqBppN5Cmg4xlFOYO8ZyoCzEE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ht4d1YExvPlc3338FQDu2/ZBMfW5mRydT3xsPW4o4pj7qS+6DkcS0eT0hqeL1T18p BVB2fwaO7Npz/IP39LBWvx2rj/YFaEDlWBZNQwim8J8lLoblAZIL2dSIR5h1GFQfwp RSejNR8gfkCQxytNIPfZS0WC/ajYJ78+chZ/YuEU= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Viresh Kumar <viresh.kumar@linaro.org>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.19 092/220] OPP: Return error on error from dev_pm_opp_get_opp_count() Date: Fri, 22 Nov 2019 11:27:37 +0100 Message-Id: <20191122100919.284328583@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191122100912.732983531@linuxfoundation.org> References: <20191122100912.732983531@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/opp/core.c b/drivers/opp/core.c index f3433bf47b100..1e80f9ec1aa6a 100644 --- a/drivers/opp/core.c +++ b/drivers/opp/core.c @@ -313,7 +313,7 @@ int dev_pm_opp_get_opp_count(struct device *dev) count = PTR_ERR(opp_table); dev_dbg(dev, "%s: OPP table not found (%d)\n", __func__, count); - return 0; + return count; } count = _get_opp_count(opp_table);