From patchwork Thu Apr 3 14:50:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 27690 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f72.google.com (mail-pb0-f72.google.com [209.85.160.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9E02F20490 for ; Thu, 3 Apr 2014 14:50:59 +0000 (UTC) Received: by mail-pb0-f72.google.com with SMTP id jt11sf6960293pbb.3 for ; Thu, 03 Apr 2014 07:50:58 -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=gc0lp3nvVv/sgLOfrtIDH+LEIuUYAt56OoY8+CZo3ok=; b=QOEWNXmXURtw5AB6gH4N631uIH7X9iPsOJnzQ27pzFN+brVAAgCHzIWW5Z0ymD2+M1 zkGiFI0SA1RzhItFT4PIyqSsNK9UzHKcaoGLw9DMRmM7w5/seePulXyWuxSVC3qpFVcZ A918/game1ll19t9S8A7ZGKr69KP2tfp0n7j56MHrDe3Bz7sgozZ6hOyNOJzCuM3oCW9 8pmpzdgJpArKzkY5c8IcZTka8kvx/OMg8jWcDaG2/crQ0eePm6uaCdMtPkqLRWY9vSDI Y6vLeJ3J8VIbc6FC03Q1gPAcpEAb3m+OKb2Lt359I6RxoakCcEXXG0J8vps3mEfgOE9O p2Ew== X-Gm-Message-State: ALoCoQlCt7wGpBeBzxy5HJkbODZvIgSSPM6AL4NTIytG3RffCwGujE2WoTLzDgsd6NeCN1OJJCae X-Received: by 10.66.221.137 with SMTP id qe9mr4450963pac.4.1396536658308; Thu, 03 Apr 2014 07:50:58 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.49.112 with SMTP id p103ls669479qga.41.gmail; Thu, 03 Apr 2014 07:50:58 -0700 (PDT) X-Received: by 10.220.167.2 with SMTP id o2mr3282420vcy.8.1396536658190; Thu, 03 Apr 2014 07:50:58 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id o2si271399vew.61.2014.04.03.07.50.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Apr 2014 07:50:58 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.171 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.171; Received: by mail-vc0-f171.google.com with SMTP id lg15so2043013vcb.16 for ; Thu, 03 Apr 2014 07:50:58 -0700 (PDT) X-Received: by 10.53.1.69 with SMTP id be5mr6705401vdd.27.1396536658114; Thu, 03 Apr 2014 07:50:58 -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 v8csp34532vcv; Thu, 3 Apr 2014 07:50:57 -0700 (PDT) X-Received: by 10.68.190.200 with SMTP id gs8mr8019762pbc.130.1396536656428; Thu, 03 Apr 2014 07:50:56 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si3213690paw.86.2014.04.03.07.50.55; Thu, 03 Apr 2014 07:50:55 -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 S1752614AbaDCOuv (ORCPT + 12 others); Thu, 3 Apr 2014 10:50:51 -0400 Received: from mail-pd0-f173.google.com ([209.85.192.173]:62611 "EHLO mail-pd0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752613AbaDCOuq (ORCPT ); Thu, 3 Apr 2014 10:50:46 -0400 Received: by mail-pd0-f173.google.com with SMTP id z10so1895438pdj.4 for ; Thu, 03 Apr 2014 07:50:46 -0700 (PDT) X-Received: by 10.66.161.38 with SMTP id xp6mr7736724pab.145.1396536646206; Thu, 03 Apr 2014 07:50:46 -0700 (PDT) Received: from localhost ([122.167.157.217]) by mx.google.com with ESMTPSA id qh2sm26371822pab.13.2014.04.03.07.50.42 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 03 Apr 2014 07:50:45 -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, egtvedt@samfundet.no, lxoliva@fsfla.org, Viresh Kumar Subject: [PATCH] cpufreq: at32ap: don't declare local variable as static Date: Thu, 3 Apr 2014 20:20:36 +0530 Message-Id: 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.171 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 Acked-by: Hans-Christian Egtvedt --- drivers/cpufreq/at32ap-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/at32ap-cpufreq.c b/drivers/cpufreq/at32ap-cpufreq.c index a1c79f5..7b612c8 100644 --- a/drivers/cpufreq/at32ap-cpufreq.c +++ b/drivers/cpufreq/at32ap-cpufreq.c @@ -52,7 +52,7 @@ static int at32_set_target(struct cpufreq_policy *policy, unsigned int index) static int at32_cpufreq_driver_init(struct cpufreq_policy *policy) { unsigned int frequency, rate, min_freq; - static struct clk *cpuclk; + struct clk *cpuclk; int retval, steps, i; if (policy->cpu != 0)