From patchwork Sat Aug 10 06:44:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18937 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gh0-f200.google.com (mail-gh0-f200.google.com [209.85.160.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AC3AE246EB for ; Sat, 10 Aug 2013 06:48:15 +0000 (UTC) Received: by mail-gh0-f200.google.com with SMTP id 10sf2758744ghy.7 for ; Fri, 09 Aug 2013 23:48:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state: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=ScuDHGXaVq8GrDBLbhS/CIOapTsBsN2a//eWl9Fmyqug0uZM5ZFzzPS9eDTkmA4D+w rGpTjmOh3wuKMULmidEgkEIs1You0pphf6UMlirSO0iqk6BsCzwXYApDtAC2jD6k6HWS JDDe2Q0eQto/WUqPvgfB/ZO3aE7TLgniOtrhPew2uYpU9NO06dzSHEzMDUhpEO1RurG2 NgFwp6C90jq39D1uBk/3XPOps8IO7WWkokBsSoE8mYtjidPtoHZIeEGFxucKxFkALIXT sULSy62IMp1FSMVggpkTYEUw5wL1UrJO49Up/33TRIwor9CV7kufZTw9WQHo+os5l1ND 1ffA== X-Received: by 10.224.64.202 with SMTP id f10mr15902160qai.2.1376117295408; Fri, 09 Aug 2013 23:48:15 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.51.40 with SMTP id h8ls1686693qeo.28.gmail; Fri, 09 Aug 2013 23:48:15 -0700 (PDT) X-Received: by 10.220.92.68 with SMTP id q4mr2267962vcm.93.1376117295261; Fri, 09 Aug 2013 23:48:15 -0700 (PDT) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by mx.google.com with ESMTPS id rx10si5670494vdc.138.2013.08.09.23.48.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:48:15 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.48 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.48; Received: by mail-vb0-f48.google.com with SMTP id w16so4549496vbf.21 for ; Fri, 09 Aug 2013 23:48:15 -0700 (PDT) X-Gm-Message-State: ALoCoQmkHyaf+GiUd543cc5JXu2CmydQjWf3Q15Ptqq0KT3KzL8vhV6B/6WrAHf+TMdDU9kgjtI4 X-Received: by 10.58.128.71 with SMTP id nm7mr7679059veb.51.1376117295176; Fri, 09 Aug 2013 23:48:15 -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 u4csp90vcz; Fri, 9 Aug 2013 23:48:14 -0700 (PDT) X-Received: by 10.68.223.225 with SMTP id qx1mr14790033pbc.157.1376117294240; Fri, 09 Aug 2013 23:48:14 -0700 (PDT) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by mx.google.com with ESMTPS id yl7si15767977pab.174.2013.08.09.23.48.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:48:14 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.46 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.46; Received: by mail-pa0-f46.google.com with SMTP id fa1so5742945pad.33 for ; Fri, 09 Aug 2013 23:48:13 -0700 (PDT) X-Received: by 10.68.131.133 with SMTP id om5mr14933402pbb.148.1376117293626; Fri, 09 Aug 2013 23:48:13 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id cn2sm19797763pbb.35.2013.08.09.23.48.09 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:48:13 -0700 (PDT) From: Viresh Kumar 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, Viresh Kumar , John Crispin Subject: [PATCH 04/44] cpufreq: loongson2: call cpufreq_frequency_table_put_attr() Date: Sat, 10 Aug 2013 12:14:00 +0530 Message-Id: <7ccb5d36ab13d9736fa9f04e60b3ad42ae7423e1.1376116345.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: 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.48 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: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 Signed-off-by: Viresh Kumar --- drivers/cpufreq/loongson2_cpufreq.c | 1 + 1 file changed, 1 insertion(+) 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; }