From patchwork Fri Sep 13 12:59:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20100 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 755AF202E6 for ; Fri, 13 Sep 2013 13:08:30 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id z20sf1235416yhz.3 for ; Fri, 13 Sep 2013 06:08:30 -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=IP5+DLd4kMXBjf4We9wzCYMmwZN6iDc252vc7XSK53s=; b=OQaXQgGhMlKR8lrFm2z0e/32siJLJnfnEJDZhrLt+r/rzc5hxXuOfjTNJVgGjuVY6S ztv5tzpnHqQxGBVpDn37CTgjp8vOtj8zuv3afdW5eytfS8SJFFIc+K6+FzxGicHCtqdY sZyb3fR2DpTIYw8yX/82sDlVLxH3exhLOXzPjE+I5w/Uf2KL/8jukRbKPr1r10WDZhJb EmgAiCVf5PG2Vah++m86OpkcsBUCIWBCm/o9QioWEOC06w9YXEofh0vBDW5Twu9kORaP wUP334BkIhygXVU8EyWDZ+qV19hBWaSz6AUoBt3J6cAcSexeSXj4QVjagWycZ0xlsrPa wLNQ== X-Gm-Message-State: ALoCoQmnIxGk9lAReFhcbLHDN07g3yyBUcyxz1b+JgKXkBxokXQSCMKCbFMeZ1R/wb0Yugry8SoS X-Received: by 10.236.54.68 with SMTP id h44mr4955796yhc.21.1379077710232; Fri, 13 Sep 2013 06:08:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.37.170 with SMTP id z10ls1090036qej.32.gmail; Fri, 13 Sep 2013 06:08:30 -0700 (PDT) X-Received: by 10.220.105.199 with SMTP id u7mr11677278vco.1.1379077710006; Fri, 13 Sep 2013 06:08:30 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id ti4si3094231vec.99.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:08:30 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.174 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.174; Received: by mail-vc0-f174.google.com with SMTP id gd11so895112vcb.5 for ; Fri, 13 Sep 2013 06:08:29 -0700 (PDT) X-Received: by 10.52.110.98 with SMTP id hz2mr9192989vdb.1.1379077709920; Fri, 13 Sep 2013 06:08:29 -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 u4csp79723vcz; Fri, 13 Sep 2013 06:08:29 -0700 (PDT) X-Received: by 10.68.135.70 with SMTP id pq6mr1551935pbb.200.1379077708960; Fri, 13 Sep 2013 06:08:28 -0700 (PDT) Received: from mail-pb0-f43.google.com (mail-pb0-f43.google.com [209.85.160.43]) by mx.google.com with ESMTPS id p8si2567855pbc.121.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:08:28 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.43 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.43; Received: by mail-pb0-f43.google.com with SMTP id md4so1215747pbc.16 for ; Fri, 13 Sep 2013 06:08:28 -0700 (PDT) X-Received: by 10.68.196.138 with SMTP id im10mr2407756pbc.127.1379077708539; Fri, 13 Sep 2013 06:08:28 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id y5sm11674338pbs.18.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:08:28 -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 Subject: [PATCH 046/228] cpufreq: tegra: fix implementation of ->exit() Date: Fri, 13 Sep 2013 18:29:52 +0530 Message-Id: <33874a6a319c05a4fb9eb5b7b5b358548b8b04fc.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.220.174 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: , ->exit() of drivers should call cpufreq_frequency_table_put_attr() if they have called cpufreq_frequency_table_get_attr() earlier in init() and they aren't required to validate their cpufreq table in exit by calling cpufreq_frequency_table_cpuinfo(). Tegra's driver wasn't calling cpufreq_frequency_table_put_attr() and was calling cpufreq_frequency_table_cpuinfo() in exit. Fix both these issues in it. Signed-off-by: Viresh Kumar --- drivers/cpufreq/tegra-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/tegra-cpufreq.c b/drivers/cpufreq/tegra-cpufreq.c index d45c1d8..e014077 100644 --- a/drivers/cpufreq/tegra-cpufreq.c +++ b/drivers/cpufreq/tegra-cpufreq.c @@ -232,7 +232,7 @@ static int tegra_cpu_init(struct cpufreq_policy *policy) static int tegra_cpu_exit(struct cpufreq_policy *policy) { - cpufreq_frequency_table_cpuinfo(policy, freq_table); + cpufreq_frequency_table_put_attr(policy->cpu); clk_disable_unprepare(emc_clk); return 0; }