From patchwork Sat Aug 10 06:44:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18939 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f197.google.com (mail-ye0-f197.google.com [209.85.213.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6032F246EB for ; Sat, 10 Aug 2013 06:48:29 +0000 (UTC) Received: by mail-ye0-f197.google.com with SMTP id q8sf1573028yen.0 for ; Fri, 09 Aug 2013 23:48:29 -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=gbJAtUb9Yq/RyJ65W36SQ+ardK57GE8jplqtEGdun64=; b=CyWAG+lsUfMK3cRXasBDDvgJVlZptQq61fbDlyZ3LYC4H3rUdHoBq+Hu0EBBbOKtcI ufM+m3lm0uY4ZSy5AgD8Sv6Kj/Tp4hJD8dfV1PNtdzcVWo5uYFWCRDQBEO8msZHsNuiU 4Ztczd0ccRfLnK5Rhyba3BFltFS4e+5DM2fUtAshCEU9qRzBUyS0OgKh+vfB6XVTdlr9 oK8N39dq2x/lvISYduoS6VpmjdMJ3BJtj8Qo5vEgi6+et2sjvOdN7r1ryqj95ScS1ra2 Pirp+aV80qxqEWSrvDbOPNoPf5DZy2wOMlDdb+qhtX/hMqF+TcMgRCTZ2GSufuG5aJ4n 2gfA== X-Received: by 10.236.62.132 with SMTP id y4mr3471801yhc.13.1376117309116; Fri, 09 Aug 2013 23:48:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.62.99 with SMTP id x3ls1691587qer.56.gmail; Fri, 09 Aug 2013 23:48:29 -0700 (PDT) X-Received: by 10.221.39.134 with SMTP id tm6mr2186742vcb.10.1376117308945; Fri, 09 Aug 2013 23:48:28 -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 l7si5681345vcg.55.2013.08.09.23.48.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:48:28 -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 ij15so1637721vcb.16 for ; Fri, 09 Aug 2013 23:48:28 -0700 (PDT) X-Gm-Message-State: ALoCoQlnDR3jequ9Y5tutsR0Xe+TRUddO6oXRLihbSgKYgXvx1AR7k5zYSRZKT/tqWYAA/4fuMwL X-Received: by 10.52.117.208 with SMTP id kg16mr6591517vdb.48.1376117308807; Fri, 09 Aug 2013 23:48:28 -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 u4csp99vcz; Fri, 9 Aug 2013 23:48:28 -0700 (PDT) X-Received: by 10.68.196.37 with SMTP id ij5mr14880093pbc.175.1376117307859; Fri, 09 Aug 2013 23:48:27 -0700 (PDT) Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) by mx.google.com with ESMTPS id dz4si14581885pbc.359.2013.08.09.23.48.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:48:27 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.51 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.51; Received: by mail-pa0-f51.google.com with SMTP id lf1so2877145pab.24 for ; Fri, 09 Aug 2013 23:48:27 -0700 (PDT) X-Received: by 10.66.253.100 with SMTP id zz4mr4106209pac.48.1376117307513; Fri, 09 Aug 2013 23:48:27 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id iu7sm24173097pbc.8.2013.08.09.23.48.23 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:48:26 -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 , Eric Miao Subject: [PATCH 06/44] cpufreq: pxa: call cpufreq_frequency_table_put_attr() Date: Sat, 10 Aug 2013 12:14:02 +0530 Message-Id: <7c7aeda55d9ea8f37de016fd2fd0c78d901082d9.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.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: 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 a429d7c..06af29c 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 89841f5..1cc145a 100644 --- a/drivers/cpufreq/pxa3xx-cpufreq.c +++ b/drivers/cpufreq/pxa3xx-cpufreq.c @@ -227,10 +227,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", };