From patchwork Wed Apr 2 04:44:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 27597 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f199.google.com (mail-ig0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9EDDA20553 for ; Wed, 2 Apr 2014 04:44:36 +0000 (UTC) Received: by mail-ig0-f199.google.com with SMTP id c1sf6391879igq.2 for ; Tue, 01 Apr 2014 21:44:36 -0700 (PDT) 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=M461S8nSYoiG+WdDHEgttENevPcgubxTMBU4WSODAik=; b=iDpNbEsuU0sPjENJ8FS4b5YskZ5nQz42rhxNoH0RJNsmVWp2tR7XtL1ljsV1UQPaWl XeE+YbwGzKqeXMuOWdWd5SqLhL5sNBOBBpc+VtKY9q86IjKLVmQKxvFJWJ//PEdopfxA osItJJGsyRrvEwaauNs7ntkl2g5xGiCK0FeXrKaDNBCC0ztm6Y+ncHlzN30+OY22bKp2 +2EjJLWRPlBn0fx1nRr9VPt7y6II8u5UH5UKxRUGUMjgsAUT+IjPvFQr7lcMYPzJPXZZ g8wgXpfHSiPFU8WmtFRTw7VZZ1tpjL4AZWYlzORpr8b/pmrv3ZEEsIagydplQ30MeIIe ll9Q== X-Gm-Message-State: ALoCoQmPFJIZTvuspqeNQI/FXEsJqenwMyPOBkfc6nCS5NuHuOPz4APA/3rFDpLcpXwx8ULLAaG3 X-Received: by 10.182.186.105 with SMTP id fj9mr15702347obc.5.1396413875993; Tue, 01 Apr 2014 21:44:35 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.27.138 with SMTP id 10ls214595qgx.52.gmail; Tue, 01 Apr 2014 21:44:35 -0700 (PDT) X-Received: by 10.52.128.231 with SMTP id nr7mr28244878vdb.17.1396413875850; Tue, 01 Apr 2014 21:44:35 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id cb3si248367vdc.185.2014.04.01.21.44.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Apr 2014 21:44:35 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id ij19so10988601vcb.38 for ; Tue, 01 Apr 2014 21:44:35 -0700 (PDT) X-Received: by 10.52.23.97 with SMTP id l1mr6382432vdf.11.1396413875738; Tue, 01 Apr 2014 21:44:35 -0700 (PDT) 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.220.12.8 with SMTP id v8csp292196vcv; Tue, 1 Apr 2014 21:44:35 -0700 (PDT) X-Received: by 10.66.232.68 with SMTP id tm4mr17624035pac.114.1396413874998; Tue, 01 Apr 2014 21:44:34 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zt8si426992pbc.488.2014.04.01.21.44.34; Tue, 01 Apr 2014 21:44:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755136AbaDBEod (ORCPT + 12 others); Wed, 2 Apr 2014 00:44:33 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:61403 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754344AbaDBEob (ORCPT ); Wed, 2 Apr 2014 00:44:31 -0400 Received: by mail-wi0-f181.google.com with SMTP id hm4so6310556wib.8 for ; Tue, 01 Apr 2014 21:44:30 -0700 (PDT) X-Received: by 10.180.87.164 with SMTP id az4mr25066161wib.2.1396413870696; Tue, 01 Apr 2014 21:44:30 -0700 (PDT) Received: from localhost ([213.122.173.131]) by mx.google.com with ESMTPSA id mw3sm37229229wic.7.2014.04.01.21.44.27 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 01 Apr 2014 21:44:29 -0700 (PDT) From: Viresh Kumar To: rjw@rjwysocki.net Cc: linaro-kernel@lists.linaro.org, cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, lxoliva@fsfla.org, Viresh Kumar Subject: [PATCH] cpufreq: loongson2_cpufreq: don't declare local variable as static Date: Wed, 2 Apr 2014 10:14:24 +0530 Message-Id: <254471b8cee296f860d24368cc467c00b5a07336.1396413826.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e 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=neutral (google.com: 209.85.220.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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: , Earlier commit: commit 652ed95d5fa6074b3c4ea245deb0691f1acb6656 Author: Viresh Kumar Date: Thu Jan 9 20:38:43 2014 +0530 cpufreq: introduce cpufreq_generic_get() routine did some changes to driver and by mistake made cpuclk as a 'static' local variable, which wasn't actually required. Fix it. Reported-by: Alexandre Oliva Signed-off-by: Viresh Kumar --- drivers/cpufreq/loongson2_cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/loongson2_cpufreq.c b/drivers/cpufreq/loongson2_cpufreq.c index a3588d61..f0bc31f 100644 --- a/drivers/cpufreq/loongson2_cpufreq.c +++ b/drivers/cpufreq/loongson2_cpufreq.c @@ -69,7 +69,7 @@ static int loongson2_cpufreq_target(struct cpufreq_policy *policy, static int loongson2_cpufreq_cpu_init(struct cpufreq_policy *policy) { - static struct clk *cpuclk; + struct clk *cpuclk; int i; unsigned long rate; int ret;