From patchwork Fri Sep 13 12:59:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20084 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f198.google.com (mail-ve0-f198.google.com [209.85.128.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 359DC202E6 for ; Fri, 13 Sep 2013 13:06:41 +0000 (UTC) Received: by mail-ve0-f198.google.com with SMTP id c14sf1220490vea.5 for ; Fri, 13 Sep 2013 06:06:41 -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=Y6gf5WlGVO4IHau+S+XjkB8ucZx4IwOZYckwNN8kiO4=; b=Qj0hk8Ytoobsr5LjuDfOfvmcy7/Ohsmkx6HtcM0pIEaHheRij1Q7vveMNhNMjShCoI dFawnqPpK1+dVubp3JBVlGuebQ0JsIf7BqRUgwyW/mqok/s9V4gx27ONkqUaPhm8E83H UnGKm8u2aKWjecSpRut7k320bdlozdnLirb/QcTIiicAceoEc2m9Vr1Z16U9LYDRoKJm qX38lhNfs0aBTFH7i2wM8PM5wGp27s3ouu5jWRVG1wdy466p7EeLtp2ycMp2ZZOirlUG kaTFW3pPxLWuY1Xa/MWUplQgBHYAacRQ9YMgxPJ9D30FhRtGfArIK6OW5wSLuaM8S5jM 3BNg== X-Gm-Message-State: ALoCoQliO4/ITg/hO41qH3ANWEMfgiP9OkcVE7XuGUAIc1Bz8y7OwwKQKoxm9Hy7JubQIymEQJuF X-Received: by 10.236.41.100 with SMTP id g64mr5097314yhb.31.1379077600964; Fri, 13 Sep 2013 06:06:40 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.38.70 with SMTP id e6ls1196716qek.77.gmail; Fri, 13 Sep 2013 06:06:40 -0700 (PDT) X-Received: by 10.58.136.4 with SMTP id pw4mr12072615veb.10.1379077600751; Fri, 13 Sep 2013 06:06:40 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id fb4si3094079veb.88.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:06:40 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.170 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.170; Received: by mail-ve0-f170.google.com with SMTP id c14so925053vea.15 for ; Fri, 13 Sep 2013 06:06:40 -0700 (PDT) X-Received: by 10.52.122.68 with SMTP id lq4mr10084495vdb.21.1379077600659; Fri, 13 Sep 2013 06:06:40 -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 u4csp79600vcz; Fri, 13 Sep 2013 06:06:39 -0700 (PDT) X-Received: by 10.66.11.202 with SMTP id s10mr15463763pab.86.1379077598633; Fri, 13 Sep 2013 06:06:38 -0700 (PDT) Received: from mail-pd0-f174.google.com (mail-pd0-f174.google.com [209.85.192.174]) by mx.google.com with ESMTPS id dj4si7392405pbc.224.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:06:38 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.174 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.174; Received: by mail-pd0-f174.google.com with SMTP id y13so1229517pdi.19 for ; Fri, 13 Sep 2013 06:06:38 -0700 (PDT) X-Received: by 10.68.217.34 with SMTP id ov2mr1357758pbc.204.1379077598224; Fri, 13 Sep 2013 06:06:38 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id et3sm11633971pbc.43.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:06:37 -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 , "David S. Miller" Subject: [PATCH 030/228] cpufreq: p4-clockmod: use cpufreq_table_validate_and_show() Date: Fri, 13 Sep 2013 18:29:36 +0530 Message-Id: <1476114c469dd7b3b3a4e793c7c04441021fd315.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.128.170 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: David S. Miller Signed-off-by: Viresh Kumar --- drivers/cpufreq/p4-clockmod.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/cpufreq/p4-clockmod.c b/drivers/cpufreq/p4-clockmod.c index 2f0a2a6..03478bf 100644 --- a/drivers/cpufreq/p4-clockmod.c +++ b/drivers/cpufreq/p4-clockmod.c @@ -230,7 +230,6 @@ static int cpufreq_p4_cpu_init(struct cpufreq_policy *policy) else p4clockmod_table[i].frequency = (stock_freq * i)/8; } - cpufreq_frequency_table_get_attr(p4clockmod_table, policy->cpu); /* cpuinfo and default policy values */ @@ -239,7 +238,7 @@ static int cpufreq_p4_cpu_init(struct cpufreq_policy *policy) policy->cpuinfo.transition_latency = 10000001; policy->cur = stock_freq; - return cpufreq_frequency_table_cpuinfo(policy, &p4clockmod_table[0]); + return cpufreq_table_validate_and_show(policy, &p4clockmod_table[0]); }