From patchwork Fri Sep 13 12:59:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20107 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f69.google.com (mail-vb0-f69.google.com [209.85.212.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 92323202E6 for ; Fri, 13 Sep 2013 13:09:20 +0000 (UTC) Received: by mail-vb0-f69.google.com with SMTP id e13sf1194705vbg.4 for ; Fri, 13 Sep 2013 06:09:20 -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=eZrTYWudfDz9/Pi0ImFkT7Jt7OxE9vxPz4MzmtcCgtY=; b=OwG93sza7ObTo6atSPJbOoF5Rqjn1bIz0IOelEOaWFlTZ3jwGv3EaaOPp/ck6+K683 bnSBKDhEc8QdzUKjJllCYfLTV27XznYe1s+NJ2/Fktfb+05+Rtpmd3G2nOVfejYmwnyW gWeAnd58cLfRkG7pBlryj3jUaQx0mBr7Jd1v0OPef8hu8i6aFNnWdfSkljxEQFJtbXJj LGV/S1DkXYqec6j0GuS06l7RiqFsTHdfHUlFDuMa8J2LMsbFpTKppWjq6zMarJdApla5 3WU5h8d7cUNDOS5VSfUL+T32MTn6jklR2Ga+4hqFZ0RnLz4gH4SVdyfT4xLWPiva/fOw 5Kxg== X-Gm-Message-State: ALoCoQlwF5/euLR01Xzo35md8B5lB5jYgLFwQCQJkBakEAFqcdjg0AvDCzjplgm40ZY0rmbigPrP X-Received: by 10.236.176.1 with SMTP id a1mr4855922yhm.10.1379077760312; Fri, 13 Sep 2013 06:09:20 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.3.169 with SMTP id d9ls1203653qed.61.gmail; Fri, 13 Sep 2013 06:09:20 -0700 (PDT) X-Received: by 10.58.198.13 with SMTP id iy13mr11955292vec.11.1379077760072; Fri, 13 Sep 2013 06:09:20 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id de6si3110191vcb.34.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:09:20 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.182 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.182; Received: by mail-vc0-f182.google.com with SMTP id hf12so882843vcb.41 for ; Fri, 13 Sep 2013 06:09:20 -0700 (PDT) X-Received: by 10.52.103.35 with SMTP id ft3mr10203272vdb.5.1379077759975; Fri, 13 Sep 2013 06:09:19 -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 u4csp79768vcz; Fri, 13 Sep 2013 06:09:19 -0700 (PDT) X-Received: by 10.66.150.69 with SMTP id ug5mr15409764pab.55.1379077758848; Fri, 13 Sep 2013 06:09:18 -0700 (PDT) Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.181]) by mx.google.com with ESMTPS id xx2si11143230pac.256.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:09:18 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.181 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.181; Received: by mail-pd0-f181.google.com with SMTP id g10so1233994pdj.12 for ; Fri, 13 Sep 2013 06:09:18 -0700 (PDT) X-Received: by 10.68.13.3 with SMTP id d3mr13664422pbc.62.1379077758370; Fri, 13 Sep 2013 06:09:18 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id yh1sm7067608pbc.21.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:09:17 -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 , Eric Miao Subject: [PATCH 053/228] cpufreq: pxa: call cpufreq_frequency_table_put_attr() Date: Fri, 13 Sep 2013 18:29:59 +0530 Message-Id: <6f801ca6195b9635ea39f8f7bec377f74237d029.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.182 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: Eric Miao Signed-off-by: Viresh Kumar --- drivers/cpufreq/pxa2xx-cpufreq.c | 6 ++++++ drivers/cpufreq/pxa3xx-cpufreq.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/drivers/cpufreq/pxa2xx-cpufreq.c b/drivers/cpufreq/pxa2xx-cpufreq.c index b3bfb57..9e8a6b4 100644 --- a/drivers/cpufreq/pxa2xx-cpufreq.c +++ b/drivers/cpufreq/pxa2xx-cpufreq.c @@ -465,10 +465,16 @@ static int pxa_cpufreq_init(struct cpufreq_policy *policy) return 0; } +static int pxa_cpufreq_exit(struct cpufreq_policy *policy) +{ + cpufreq_frequency_table_put_attr(policy->cpu); +} + static struct cpufreq_driver pxa_cpufreq_driver = { .verify = pxa_verify_policy, .target = pxa_set_target, .init = pxa_cpufreq_init, + .exit = pxa_cpufreq_exit, .get = pxa_cpufreq_get, .name = "PXA2xx", }; diff --git a/drivers/cpufreq/pxa3xx-cpufreq.c b/drivers/cpufreq/pxa3xx-cpufreq.c index 3f4986e..085a27d 100644 --- a/drivers/cpufreq/pxa3xx-cpufreq.c +++ b/drivers/cpufreq/pxa3xx-cpufreq.c @@ -229,10 +229,16 @@ static int pxa3xx_cpufreq_init(struct cpufreq_policy *policy) return 0; } +static int pxa3xx_cpufreq_exit(struct cpufreq_policy *policy) +{ + cpufreq_frequency_table_put_attr(policy->cpu); +} + static struct cpufreq_driver pxa3xx_cpufreq_driver = { .verify = pxa3xx_cpufreq_verify, .target = pxa3xx_cpufreq_set, .init = pxa3xx_cpufreq_init, + .exit = pxa3xx_cpufreq_exit, .get = pxa3xx_cpufreq_get, .name = "pxa3xx-cpufreq", };