From patchwork Fri Sep 13 12:59:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20078 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5DD46202E6 for ; Fri, 13 Sep 2013 13:05:55 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id r5sf1190808qcx.0 for ; Fri, 13 Sep 2013 06:05:55 -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=g8Qbd2PJ5SSg6LdgwYB0iQo75fURiwdXi/Npfe2FPYY=; b=lRhwgVYVBLXtevJy/NiPQc8m/bWyIMMafP9kCRIgERfjkk8dnimcEQID+szvxOZNGt car0dmUv9LuFPAg5BPmCM2yejnmLnzVvGUhL9hF9xoMMGYDsiGGVh4Q95TDn4xmQgXZR eaFehT0sMLPlqSzG5ynWtvf18qv6/A8vyhHfdQc2zG5bC9WkEnigZoJIGxyYaGpCgkUr fdZCA3HnxJ4nYA2v4hwhzYbViIgD70gMN//cJxgNgqBHbrxywlEta9DTtnv5P9ok/b3h mbI8CcHxgqvRbtOuZ5uKm4+/xXrHFj86dTMPlItJiiHCrvE1ob9OKu7G/vEbOZ7fGbSW lDaA== X-Gm-Message-State: ALoCoQn+DOeVktdZ2cEth58QgRyb382RKdQ59nVSWFFhXDnPsjGYpFNfYhb7e2+HKWSafEy7ll9n X-Received: by 10.58.12.129 with SMTP id y1mr903220veb.36.1379077555142; Fri, 13 Sep 2013 06:05:55 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.58.148 with SMTP id r20ls1183560qeq.3.gmail; Fri, 13 Sep 2013 06:05:54 -0700 (PDT) X-Received: by 10.220.105.199 with SMTP id u7mr11666736vco.1.1379077554943; Fri, 13 Sep 2013 06:05:54 -0700 (PDT) Received: from mail-vb0-f52.google.com (mail-vb0-f52.google.com [209.85.212.52]) by mx.google.com with ESMTPS id o5si3071822vdw.154.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:05:54 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.52 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.52; Received: by mail-vb0-f52.google.com with SMTP id f12so857159vbg.25 for ; Fri, 13 Sep 2013 06:05:54 -0700 (PDT) X-Received: by 10.221.27.73 with SMTP id rp9mr726957vcb.29.1379077554837; Fri, 13 Sep 2013 06:05:54 -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 u4csp79552vcz; Fri, 13 Sep 2013 06:05:54 -0700 (PDT) X-Received: by 10.66.25.102 with SMTP id b6mr14588394pag.129.1379077553747; Fri, 13 Sep 2013 06:05:53 -0700 (PDT) Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by mx.google.com with ESMTPS id u4si7405150pbi.154.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:05:53 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.171 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.171; Received: by mail-pd0-f171.google.com with SMTP id g10so1211889pdj.30 for ; Fri, 13 Sep 2013 06:05:53 -0700 (PDT) X-Received: by 10.67.23.199 with SMTP id ic7mr15376085pad.73.1379077553197; Fri, 13 Sep 2013 06:05:53 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id tz3sm11656897pbc.20.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:05:52 -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 , Shawn Guo Subject: [PATCH 024/228] cpufreq: imx6q: use cpufreq_table_validate_and_show() Date: Fri, 13 Sep 2013 18:29:30 +0530 Message-Id: <96dc59aaf8ee2057813782806a8a0c2b0d9b3770.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.212.52 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: , Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Cc: Shawn Guo Signed-off-by: Viresh Kumar --- drivers/cpufreq/imx6q-cpufreq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c index 3e39654..cd9489f 100644 --- a/drivers/cpufreq/imx6q-cpufreq.c +++ b/drivers/cpufreq/imx6q-cpufreq.c @@ -160,7 +160,7 @@ static int imx6q_cpufreq_init(struct cpufreq_policy *policy) { int ret; - ret = cpufreq_frequency_table_cpuinfo(policy, freq_table); + ret = cpufreq_table_validate_and_show(policy, freq_table); if (ret) { dev_err(cpu_dev, "invalid frequency table: %d\n", ret); return ret; @@ -169,7 +169,6 @@ static int imx6q_cpufreq_init(struct cpufreq_policy *policy) policy->cpuinfo.transition_latency = transition_latency; policy->cur = clk_get_rate(arm_clk) / 1000; cpumask_setall(policy->cpus); - cpufreq_frequency_table_get_attr(freq_table, policy->cpu); return 0; }