From patchwork Fri Sep 13 12:59:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20103 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f200.google.com (mail-ye0-f200.google.com [209.85.213.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 78011202E6 for ; Fri, 13 Sep 2013 13:08:51 +0000 (UTC) Received: by mail-ye0-f200.google.com with SMTP id r3sf1153039yen.7 for ; Fri, 13 Sep 2013 06:08:51 -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=qO2L1w4nDLNde6WQu+dp5TYoFq2/xakKDPwWybAg2zQ=; b=NC+HII6zZJG8a767EdChRsxEVc2SOzwvbhFsVt3Z6ej5bJpLx14oj1rE8iUj8SmOEh XPKcKp6EMtYa2hNEgIANR5S7iDqH5RjwgzU1gK1m115yhPsVWAdnUjMaTx2RcMpW4BEc gFgOwBS7qa7BZWq3M3VN81upCVnksV0Ix8GMa395KxfqlqS1Q4kv/goVMUY0qmTAWzxe RMz3hp/RVl+oY8ou/PRfYphg8v6MIXjR/sx7FXQ/Qw6AuH2majVR1L+l58fgGyPHsg+a PHk+o0z8trXWXNU2OJ2gG5SL3w0CuXeMZqQ/wlp3OCvytQq/xCneAdOAwGLdktPEjfxH sFkw== X-Gm-Message-State: ALoCoQnGtCalM/veah0kGLGgHHuNiYZRcgApiQqVsrjkoSNk2d+y1QW4t+XDeFab6+5e/6VGbxDN X-Received: by 10.236.124.33 with SMTP id w21mr4946666yhh.15.1379077731232; Fri, 13 Sep 2013 06:08:51 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.95.138 with SMTP id dk10ls1092333qeb.23.gmail; Fri, 13 Sep 2013 06:08:51 -0700 (PDT) X-Received: by 10.220.74.69 with SMTP id t5mr12008850vcj.18.1379077730999; Fri, 13 Sep 2013 06:08:50 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id tj1si3078031vdc.144.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:08:50 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.170; Received: by mail-ve0-f170.google.com with SMTP id c14so970600vea.1 for ; Fri, 13 Sep 2013 06:08:50 -0700 (PDT) X-Received: by 10.220.11.7 with SMTP id r7mr12000657vcr.12.1379077730923; Fri, 13 Sep 2013 06:08:50 -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 u4csp79740vcz; Fri, 13 Sep 2013 06:08:50 -0700 (PDT) X-Received: by 10.66.162.167 with SMTP id yb7mr15525091pab.16.1379077729944; Fri, 13 Sep 2013 06:08:49 -0700 (PDT) Received: from mail-pd0-f172.google.com (mail-pd0-f172.google.com [209.85.192.172]) by mx.google.com with ESMTPS id g6si11165945pav.179.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:08:49 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.172 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.172; Received: by mail-pd0-f172.google.com with SMTP id z10so1239508pdj.3 for ; Fri, 13 Sep 2013 06:08:49 -0700 (PDT) X-Received: by 10.68.189.39 with SMTP id gf7mr2017733pbc.184.1379077729451; Fri, 13 Sep 2013 06:08:49 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id et3sm11645714pbc.43.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:08:48 -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, linux-arm-kernel@lists.infradead.org, Viresh Kumar , Steven Miao Subject: [PATCH 049/228] cpufreq: blackfin: call cpufreq_frequency_table_put_attr() Date: Fri, 13 Sep 2013 18:29:55 +0530 Message-Id: <4a03d7c65edb3c8f993860893daea3f874cff1e6.1379063063.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.128.170 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, };