Message ID | ad3feb97e2a3c80e8b3897a9ca17d682034e6de6.1418026567.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBB4N4SWSAKGQENCA6HXA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 46CFB202E0 for <linaro@patches.linaro.org>; Mon, 8 Dec 2014 08:16:50 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id r20sf1415338wiv.9 for <linaro@patches.linaro.org>; Mon, 08 Dec 2014 00:16:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=UeObrZK6mioaIJo1jFKTW+hP646+j1PtJ78lzIkOcfQ=; b=hVqvNH6wY3loRg9ILxJSlAu1VcfRHGTfsJhPMrEiFBFF5ohyjTzWVnZRbP5pjzTnII uSi5+mdBcJ2xdLQtn4yIF7KoV5WZcJRurQJ1l/5EZlbk8RfEfr8S4NFVU07K15lfxbgH cf9/4sKrvXFGvYgWZowCXBnU0dINXvKR2mQQcOMkJsBWCvf9496emsUNtmDtrKCFFmQX IRJJKXJByDekAieUk5mZ1eK12LB4nyVtyGp3xNBmdZzJmJg1XQe3XRqiDZ/sM3MnbGUO D7jyv6NWR6GOtbguRDo6A5QunQ/wcHsV22zju3/deiJA115YaqL28gnAAXLR9KOKgp6E milA== X-Gm-Message-State: ALoCoQkixGo1+lHxLeF5zFPCc7TbY+aEPT5JdngVvkkqThb9uZybkIk9hlPdsZf9awBtHtgwAQpc X-Received: by 10.152.5.2 with SMTP id o2mr6040512lao.1.1418026609473; Mon, 08 Dec 2014 00:16:49 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.169 with SMTP id c9ls282267laa.44.gmail; Mon, 08 Dec 2014 00:16:49 -0800 (PST) X-Received: by 10.152.27.202 with SMTP id v10mr14990303lag.13.1418026609130; Mon, 08 Dec 2014 00:16:49 -0800 (PST) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id la2si27631982lbc.44.2014.12.08.00.16.48 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 08 Dec 2014 00:16:48 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id ms9so3532820lab.10 for <patchwork-forward@linaro.org>; Mon, 08 Dec 2014 00:16:48 -0800 (PST) X-Received: by 10.152.21.66 with SMTP id t2mr14826473lae.27.1418026608694; Mon, 08 Dec 2014 00:16:48 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp568599lbc; Mon, 8 Dec 2014 00:16:47 -0800 (PST) X-Received: by 10.66.241.202 with SMTP id wk10mr52042256pac.88.1418026606854; Mon, 08 Dec 2014 00:16:46 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id vw2si58850203pbc.27.2014.12.08.00.16.46 for <multiple recipients>; Mon, 08 Dec 2014 00:16:46 -0800 (PST) Received-SPF: none (google.com: linux-pm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751969AbaLHIQp (ORCPT <rfc822;amit.pundir@linaro.org> + 12 others); Mon, 8 Dec 2014 03:16:45 -0500 Received: from mail-pa0-f45.google.com ([209.85.220.45]:62395 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751007AbaLHIQo (ORCPT <rfc822;linux-pm@vger.kernel.org>); Mon, 8 Dec 2014 03:16:44 -0500 Received: by mail-pa0-f45.google.com with SMTP id lj1so4790483pab.32 for <linux-pm@vger.kernel.org>; Mon, 08 Dec 2014 00:16:44 -0800 (PST) X-Received: by 10.70.5.68 with SMTP id q4mr18835260pdq.116.1418026604303; Mon, 08 Dec 2014 00:16:44 -0800 (PST) Received: from localhost ([122.166.92.172]) by mx.google.com with ESMTPSA id sp6sm12418310pac.42.2014.12.08.00.16.42 for <multiple recipients> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 08 Dec 2014 00:16:43 -0800 (PST) From: Viresh Kumar <viresh.kumar@linaro.org> To: Rafael Wysocki <rjw@rjwysocki.net> Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Viresh Kumar <viresh.kumar@linaro.org> Subject: [PATCH] opp: remove double calls to find_device_opp() Date: Mon, 8 Dec 2014 13:46:18 +0530 Message-Id: <ad3feb97e2a3c80e8b3897a9ca17d682034e6de6.1418026567.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.2.0 Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/drivers/base/power/opp.c b/drivers/base/power/opp.c index 2d195f3..16c59f4 100644 --- a/drivers/base/power/opp.c +++ b/drivers/base/power/opp.c @@ -768,7 +768,7 @@ EXPORT_SYMBOL_GPL(of_init_opp_table); */ void of_free_opp_table(struct device *dev) { - struct device_opp *dev_opp = find_device_opp(dev); + struct device_opp *dev_opp; struct dev_pm_opp *opp, *tmp; /* Check for existing list for 'dev' */
By mistake we called find_device_opp() twice in of_free_opp_table(), fix it. Generated diff doesn't show the problem well and so here is the code snippet: void of_free_opp_table(struct device *dev) { struct device_opp *dev_opp = find_device_opp(dev); struct dev_pm_opp *opp, *tmp; /* Check for existing list for 'dev' */ dev_opp = find_device_opp(dev); ... } Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- drivers/base/power/opp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)