From patchwork Mon Dec 8 08:16:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 41993 Return-Path: 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 ; Mon, 8 Dec 2014 08:16:50 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id r20sf1415338wiv.9 for ; 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 (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 ; 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 ; 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 + 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 ); Mon, 8 Dec 2014 03:16:44 -0500 Received: by mail-pa0-f45.google.com with SMTP id lj1so4790483pab.32 for ; 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 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 08 Dec 2014 00:16:43 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Viresh Kumar Subject: [PATCH] opp: remove double calls to find_device_opp() Date: Mon, 8 Dec 2014 13:46:18 +0530 Message-Id: X-Mailer: git-send-email 2.2.0 Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: 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: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- drivers/base/power/opp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' */