From patchwork Sat Aug 10 06:43:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18934 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f72.google.com (mail-qa0-f72.google.com [209.85.216.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1BD6E246EB for ; Sat, 10 Aug 2013 06:47:54 +0000 (UTC) Received: by mail-qa0-f72.google.com with SMTP id o19sf631961qap.11 for ; Fri, 09 Aug 2013 23:47:53 -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=Nb1RdZ5+WZefsyvQELYwS6WiwmsrSMAjjg4zDnko8KM=; b=G3JpnPGbQHe/oYCj45HNs14sDYXtN0gyQx7l7reuXo6pahU9qzpFlhgrzk4tu7ApPh VelB19Bl58oepcoYXoiNC9j6GtpWLCND2V20sj6STmI2rVLoIIF9qbLuKHL2LvrM4fq+ 0BTjzTSycqQcboSJVEsW7Z5QDPiHtQ96x5YYuwQ/hup5BWAaVCUfIH5+mdz0ZuafTRSI DCpJ8A+9Kopol/yOlHnQqhIVNN3ZyfJnE9uUinBxhodqgKoVcMo/2uW7NMDY+4XIo7Iy w8wJ2g1KnDx14lkHyWc8eplTPLESAAxIHcR6LuIi/ySHChKXPeITsvslJj9LAyPVI9Kj ykug== X-Received: by 10.236.74.169 with SMTP id x29mr6891220yhd.34.1376117273472; Fri, 09 Aug 2013 23:47:53 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.71.49 with SMTP id r17ls1534227qeu.51.gmail; Fri, 09 Aug 2013 23:47:53 -0700 (PDT) X-Received: by 10.58.209.5 with SMTP id mi5mr2141492vec.46.1376117273311; Fri, 09 Aug 2013 23:47:53 -0700 (PDT) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx.google.com with ESMTPS id r9si5679123vcc.76.2013.08.09.23.47.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:47:53 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.180 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.180; Received: by mail-ve0-f180.google.com with SMTP id pb11so4469433veb.39 for ; Fri, 09 Aug 2013 23:47:53 -0700 (PDT) X-Gm-Message-State: ALoCoQkQCFgcrI7vEBmNw/1zrJo1AU3zexXoJtIR+aOaJDTDnJf7GaM6hLJ3Z0cQuj8mu1XXBdBn X-Received: by 10.221.47.193 with SMTP id ut1mr2234460vcb.8.1376117273225; Fri, 09 Aug 2013 23:47:53 -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 u4csp74vcz; Fri, 9 Aug 2013 23:47:52 -0700 (PDT) X-Received: by 10.68.111.34 with SMTP id if2mr14865591pbb.83.1376117272299; Fri, 09 Aug 2013 23:47:52 -0700 (PDT) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by mx.google.com with ESMTPS id qf5si15790275pac.37.2013.08.09.23.47.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:47:52 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.44 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.44; Received: by mail-pa0-f44.google.com with SMTP id fz6so2909814pac.31 for ; Fri, 09 Aug 2013 23:47:51 -0700 (PDT) X-Received: by 10.66.235.105 with SMTP id ul9mr14683096pac.112.1376117271897; Fri, 09 Aug 2013 23:47:51 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id a5sm24174002pbw.4.2013.08.09.23.47.48 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:47:51 -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 Subject: [PATCH 01/44] cpufreq: arm_big_little: call cpufreq_frequency_table_put_attr() Date: Sat, 10 Aug 2013 12:13:57 +0530 Message-Id: <978bcbe9348cc446c9fe7f94a9c486f04f77a517.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.128.180 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. Signed-off-by: Viresh Kumar --- drivers/cpufreq/arm_big_little.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/arm_big_little.c b/drivers/cpufreq/arm_big_little.c index 5070273..9acfb82 100644 --- a/drivers/cpufreq/arm_big_little.c +++ b/drivers/cpufreq/arm_big_little.c @@ -198,6 +198,7 @@ static int bL_cpufreq_exit(struct cpufreq_policy *policy) return -ENODEV; } + cpufreq_frequency_table_put_attr(policy->cpu); put_cluster_clk_and_freq_table(cpu_dev); dev_dbg(cpu_dev, "%s: Exited, cpu: %d\n", __func__, policy->cpu);