From patchwork Sat Aug 10 06:43:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18935 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 41E8A246EB for ; Sat, 10 Aug 2013 06:48:01 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id hf12sf1151217vcb.7 for ; Fri, 09 Aug 2013 23:48:00 -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=qO2L1w4nDLNde6WQu+dp5TYoFq2/xakKDPwWybAg2zQ=; b=QZ4Zulb2EYX1bkfGtokatPPEb7+ZOPkH7Qc4jaYGEPAgaR6WdSBBkc4MXsGN9bruws O6kkF6/QUbUw/c3w53VWEGEvMoBrCs/1B41OVYz0Fnzi9CQfYVDu16s5LBF9Hhp8Epa7 nmkr/s5QYbXDWCK4A5THbZwA+8fEKsPQdtEZSUPqGupT2jn+WkrfWEO1Ph73pbb53FDf St/+E/nooow0EpJHkrJyZ/NV+YlnOJH/f7nTq/iQuhjjkwJJ8kWiZ48XcwViqDiJQE3k ncrGVtrDb7aCJqLcNYL91pZ1byso/bEfrZm937mckJ9n1T5HNUxfqZavxyFHhStbfGsW Y70w== X-Received: by 10.224.137.137 with SMTP id w9mr15879779qat.6.1376117280686; Fri, 09 Aug 2013 23:48:00 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.86.71 with SMTP id n7ls1667910qez.16.gmail; Fri, 09 Aug 2013 23:48:00 -0700 (PDT) X-Received: by 10.58.154.34 with SMTP id vl2mr7730513veb.35.1376117280569; Fri, 09 Aug 2013 23:48:00 -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 fa1si5684089ved.13.2013.08.09.23.48.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:48:00 -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 ij15so1613518vcb.30 for ; Fri, 09 Aug 2013 23:48:00 -0700 (PDT) X-Gm-Message-State: ALoCoQlCa8WSzyNLh15SCkO5fpd6EOz0xED6pX+lbGhzGeVz6+0nPYxj8twVYtdIrYfWQXIE4zZJ X-Received: by 10.220.164.138 with SMTP id e10mr8541124vcy.27.1376117280195; Fri, 09 Aug 2013 23:48:00 -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 u4csp79vcz; Fri, 9 Aug 2013 23:47:59 -0700 (PDT) X-Received: by 10.66.49.233 with SMTP id x9mr4229220pan.3.1376117279330; Fri, 09 Aug 2013 23:47:59 -0700 (PDT) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by mx.google.com with ESMTPS id g9si15785836pac.68.2013.08.09.23.47.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:47:59 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.41 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.41; Received: by mail-pa0-f41.google.com with SMTP id bj1so5734890pad.14 for ; Fri, 09 Aug 2013 23:47:58 -0700 (PDT) X-Received: by 10.66.254.41 with SMTP id af9mr4194201pad.174.1376117278862; Fri, 09 Aug 2013 23:47:58 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id t9sm24110068pba.46.2013.08.09.23.47.55 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:47:58 -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 , Steven Miao Subject: [PATCH 02/44] cpufreq: blackfin: call cpufreq_frequency_table_put_attr() Date: Sat, 10 Aug 2013 12:13:58 +0530 Message-Id: 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.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 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: Steven Miao Signed-off-by: Viresh Kumar --- drivers/cpufreq/blackfin-cpufreq.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/cpufreq/blackfin-cpufreq.c b/drivers/cpufreq/blackfin-cpufreq.c index 54c0a0c..84d446a 100644 --- a/drivers/cpufreq/blackfin-cpufreq.c +++ b/drivers/cpufreq/blackfin-cpufreq.c @@ -213,6 +213,12 @@ static int __bfin_cpu_init(struct cpufreq_policy *policy) return cpufreq_table_validate_and_show(policy, bfin_freq_table); } +static int __bfin_cpu_exit(struct cpufreq_policy *policy) +{ + + cpufreq_frequency_table_put_attr(policy->cpu); +} + static struct freq_attr *bfin_freq_attr[] = { &cpufreq_freq_attr_scaling_available_freqs, NULL, @@ -223,6 +229,7 @@ static struct cpufreq_driver bfin_driver = { .target = bfin_target, .get = bfin_getfreq_khz, .init = __bfin_cpu_init, + .exit = __bfin_cpu_exit, .name = "bfin cpufreq", .attr = bfin_freq_attr, };