From patchwork Fri Sep 13 12:59:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20081 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f197.google.com (mail-ve0-f197.google.com [209.85.128.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7780D202E6 for ; Fri, 13 Sep 2013 13:06:19 +0000 (UTC) Received: by mail-ve0-f197.google.com with SMTP id jy13sf1221525veb.4 for ; Fri, 13 Sep 2013 06:06:19 -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=rOzVrcF786bVSxW3f70EOp6stEf202/Pkjc5MYVlfs0=; b=crtLl9ADoyQVPJSj/PkauIKDaSprM5WrZShhJ3SzSFnTp+KSYE5NH7O7uecr0/urg3 jWmo4gALyyXgfXM4YogyYKfoQGPtL099T8Q/qSF/TkduUlwCTFzhbtjE6v0YUqn4MR8h XrywF7RW845UvAhtIThGr+I2HUmqsmPgdj2pqtn82fEGQ9hL7nsJkt77/QAVEXTjf4/O aAeXxqRg9v4WFnNvaHpBeK9f7Q8SLwn0Ox6lxllgmdW2aRJwQ3JLK6BNBRbR61MeqS9Z pxZvqO1ns2smz4+kLfUDH025wyNgKB5hlJGR6A6dZXHrq+CWq4ScZSEIqiyzoEHk/hP5 lAOA== X-Gm-Message-State: ALoCoQlYBm68xYVJyDO+eWkaLUYc91vnorMktwTZEk0mr5T/iDBoGAXLEk1b4GK1spTIDtDguy5r X-Received: by 10.236.116.135 with SMTP id g7mr646943yhh.53.1379077579174; Fri, 13 Sep 2013 06:06:19 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.5.9 with SMTP id o9ls1131467qeo.49.gmail; Fri, 13 Sep 2013 06:06:19 -0700 (PDT) X-Received: by 10.52.103.101 with SMTP id fv5mr1337128vdb.31.1379077578958; Fri, 13 Sep 2013 06:06:18 -0700 (PDT) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx.google.com with ESMTPS id xt2si3089159vcb.108.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:06:18 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.54 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.54; Received: by mail-vb0-f54.google.com with SMTP id q14so878601vbe.41 for ; Fri, 13 Sep 2013 06:06:18 -0700 (PDT) X-Received: by 10.58.100.234 with SMTP id fb10mr12074234veb.5.1379077578861; Fri, 13 Sep 2013 06:06:18 -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 u4csp79574vcz; Fri, 13 Sep 2013 06:06:18 -0700 (PDT) X-Received: by 10.66.132.69 with SMTP id os5mr14994204pab.114.1379077577792; Fri, 13 Sep 2013 06:06:17 -0700 (PDT) Received: from mail-pd0-f170.google.com (mail-pd0-f170.google.com [209.85.192.170]) by mx.google.com with ESMTPS id jx3si7416275pbc.114.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:06:17 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.170 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.170; Received: by mail-pd0-f170.google.com with SMTP id x10so1228700pdj.15 for ; Fri, 13 Sep 2013 06:06:17 -0700 (PDT) X-Received: by 10.66.218.226 with SMTP id pj2mr15289199pac.62.1379077577407; Fri, 13 Sep 2013 06:06:17 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id wd6sm18016175pab.3.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:06:16 -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 , John Crispin Subject: [PATCH 027/228] cpufreq: loongson2: use cpufreq_table_validate_and_show() Date: Fri, 13 Sep 2013 18:29:33 +0530 Message-Id: <0e379699a63ba08e82735fedb66b0318c9484d00.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.54 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: John Crispin Signed-off-by: Viresh Kumar --- drivers/cpufreq/loongson2_cpufreq.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/cpufreq/loongson2_cpufreq.c b/drivers/cpufreq/loongson2_cpufreq.c index 7bc3c44..5dd3692 100644 --- a/drivers/cpufreq/loongson2_cpufreq.c +++ b/drivers/cpufreq/loongson2_cpufreq.c @@ -133,10 +133,7 @@ static int loongson2_cpufreq_cpu_init(struct cpufreq_policy *policy) policy->cur = loongson2_cpufreq_get(policy->cpu); - cpufreq_frequency_table_get_attr(&loongson2_clockmod_table[0], - policy->cpu); - - return cpufreq_frequency_table_cpuinfo(policy, + return cpufreq_table_validate_and_show(policy, &loongson2_clockmod_table[0]); }