From patchwork Fri Sep 13 12:59:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 2890081 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id ADFF09F1E3 for ; Fri, 13 Sep 2013 15:22:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0B367202C3 for ; Fri, 13 Sep 2013 15:22:20 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C2201202C0 for ; Fri, 13 Sep 2013 15:22:18 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKT93-0007Al-Uj; Fri, 13 Sep 2013 13:10:46 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKT8Y-0006J6-82; Fri, 13 Sep 2013 13:10:14 +0000 Received: from mail-pa0-f54.google.com ([209.85.220.54]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKT5W-0005g6-5F for linux-arm-kernel@lists.infradead.org; Fri, 13 Sep 2013 13:07:21 +0000 Received: by mail-pa0-f54.google.com with SMTP id kx10so2502524pab.41 for ; Fri, 13 Sep 2013 06:06:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=hi2UKp3c1EHAkwHOZMXzXPRI0trAtC0p502m24pw86M=; b=FYKdCVFfwPGUgQzGfiZsNBDO7ZfEfpOfLVaoMHQu6e/Q0g1h2DJfZR+CJHhAcYoKi4 PAVeRasXr1IZM7xzk94Eb/R2NkY3KoLTbVDqcH9uaJBhlFoGSz+t4ASaurZHuquLdUmQ RGRYwpV4Dy+M6JNPS2y4+MlE9A3A9KGPpFmXOIcUq36248CIiwcZ+KkUXCWiPPKDHoYz uhiK61SeHju40pOxRfVpii2fhiXYi5/dJ2pMi+lsPOSKnKqIoHx2NnNL0tlGVxeFlJF2 fj/abzg1XpUTjNJRFnWKXsG2Z06On8SjYwGOMNfL6dCFxfTbq10DAOEhM13ktk1pAybw b4wQ== X-Gm-Message-State: ALoCoQn9p76jxIv6+6YiMpUrUuNdFRp6s9Ah77o2Ey7xQgX5RhkpYUpjPDoIXEuCgWvqgKwiihmW X-Received: by 10.68.204.136 with SMTP id ky8mr1581969pbc.192.1379077604889; Fri, 13 Sep 2013 06:06:44 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id py4sm11670123pbc.14.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:06:44 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl Subject: [PATCH 031/228] cpufreq: pasemi: use cpufreq_table_validate_and_show() Date: Fri, 13 Sep 2013 18:29:37 +0530 Message-Id: X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130913_090706_599667_378FAC7A X-CRM114-Status: UNSURE ( 9.20 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Viresh Kumar , patches@linaro.org, linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/pasemi-cpufreq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/cpufreq/pasemi-cpufreq.c b/drivers/cpufreq/pasemi-cpufreq.c index 534e43a..23bc8a82 100644 --- a/drivers/cpufreq/pasemi-cpufreq.c +++ b/drivers/cpufreq/pasemi-cpufreq.c @@ -219,12 +219,10 @@ static int pas_cpufreq_cpu_init(struct cpufreq_policy *policy) ppc_proc_freq = policy->cur * 1000ul; - cpufreq_frequency_table_get_attr(pas_freqs, policy->cpu); - /* this ensures that policy->cpuinfo_min and policy->cpuinfo_max * are set correctly */ - return cpufreq_frequency_table_cpuinfo(policy, pas_freqs); + return cpufreq_table_validate_and_show(policy, pas_freqs); out_unmap_sdcpwr: iounmap(sdcpwr_mapbase);