Message ID | c2ea40a2a42db568091a48f31073c73f2890a849.1379063063.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBB4M4ZSIQKGQEBW5XGMQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f72.google.com (mail-vb0-f72.google.com [209.85.212.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 739F8202E6 for <linaro@patches.linaro.org>; Fri, 13 Sep 2013 13:09:05 +0000 (UTC) Received: by mail-vb0-f72.google.com with SMTP id f12sf1186779vbg.11 for <linaro@patches.linaro.org>; Fri, 13 Sep 2013 06:09:05 -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:in-reply-to:references:in-reply-to:references :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=/HgigMDh+Cc6cGWsMQH/aQudBeon4K6XwiElbPKRAt4=; b=eCiBNeGFWWlTVVBl2fPmhHNT3GOBArxBhojRZiWC09iHhiQxKMybNzCHpmICASiNU1 SgpI1BzwJTyoPRb3xEk4F+2jVYUFiTgqU+fpKAu+LZh9ZEp5+j4nuEnLlonKKl8HZXG3 Wg6buEBnABVlgZ+kaaNd2/UKV89jkhi5OebUt/Xgf44So7UlYue5XwG2s0afY6Zq6j0C aa6iLZXtWHQQDq4up6OpAvWAo8O11NMnTeFDR9DwRXSydsXXPnLzsGwpLMV3vaii/5JW aJVRdl696xkHdNIKKFtomSzJNHYt0kGOXg3TTElJ+yr5OJrImpNXG1mmmLcqdLargevW Djaw== X-Gm-Message-State: ALoCoQnZderI40Itxm36rrJGG10wt/2anhLLQvcZYbN4+jI3+1gT9/Ka18o4AkVuo2i716b7a9Eo X-Received: by 10.236.174.232 with SMTP id x68mr5152157yhl.42.1379077745214; Fri, 13 Sep 2013 06:09:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.1.102 with SMTP id 6ls1067250qel.40.gmail; Fri, 13 Sep 2013 06:09:05 -0700 (PDT) X-Received: by 10.58.155.6 with SMTP id vs6mr218892veb.32.1379077745016; Fri, 13 Sep 2013 06:09:05 -0700 (PDT) Received: from mail-vb0-f41.google.com (mail-vb0-f41.google.com [209.85.212.41]) by mx.google.com with ESMTPS id l1si3085183vcl.139.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:09:05 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.41 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.41; Received: by mail-vb0-f41.google.com with SMTP id g17so915696vbg.0 for <patchwork-forward@linaro.org>; Fri, 13 Sep 2013 06:09:04 -0700 (PDT) X-Received: by 10.58.46.229 with SMTP id y5mr4502583vem.15.1379077744919; Fri, 13 Sep 2013 06:09:04 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp79755vcz; Fri, 13 Sep 2013 06:09:04 -0700 (PDT) X-Received: by 10.68.60.226 with SMTP id k2mr13498158pbr.146.1379077743999; Fri, 13 Sep 2013 06:09:03 -0700 (PDT) Received: from mail-pd0-f173.google.com (mail-pd0-f173.google.com [209.85.192.173]) by mx.google.com with ESMTPS id hg4si7409419pbc.195.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:09:03 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.173 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.173; Received: by mail-pd0-f173.google.com with SMTP id p10so1226487pdj.32 for <patches@linaro.org>; Fri, 13 Sep 2013 06:09:03 -0700 (PDT) X-Received: by 10.66.27.175 with SMTP id u15mr14998828pag.146.1379077743552; Fri, 13 Sep 2013 06:09:03 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id pu5sm17977949pac.21.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:09:03 -0700 (PDT) From: Viresh Kumar <viresh.kumar@linaro.org> To: rjw@sisk.pl Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Viresh Kumar <viresh.kumar@linaro.org>, John Crispin <blogic@openwrt.org> Subject: [PATCH 051/228] cpufreq: loongson2: call cpufreq_frequency_table_put_attr() Date: Fri, 13 Sep 2013 18:29:57 +0530 Message-Id: <c2ea40a2a42db568091a48f31073c73f2890a849.1379063063.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: <cover.1379063063.git.viresh.kumar@linaro.org> References: <cover.1379063063.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1379063063.git.viresh.kumar@linaro.org> References: <cover.1379063063.git.viresh.kumar@linaro.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.212.41 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: <patchwork-forward.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: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/drivers/cpufreq/loongson2_cpufreq.c b/drivers/cpufreq/loongson2_cpufreq.c index 5dd3692..cec4e72 100644 --- a/drivers/cpufreq/loongson2_cpufreq.c +++ b/drivers/cpufreq/loongson2_cpufreq.c @@ -145,6 +145,7 @@ static int loongson2_cpufreq_verify(struct cpufreq_policy *policy) static int loongson2_cpufreq_exit(struct cpufreq_policy *policy) { + cpufreq_frequency_table_put_attr(policy->cpu); clk_put(cpuclk); return 0; }
Drivers which have an exit path must call cpufreq_frequency_table_put_attr() if they have called cpufreq_frequency_table_get_attr() in their init path. This driver was missing this part and is fixed with this patch. Cc: John Crispin <blogic@openwrt.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- drivers/cpufreq/loongson2_cpufreq.c | 1 + 1 file changed, 1 insertion(+)