From patchwork Thu Aug 8 13:48:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18868 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 683DE246A4 for ; Thu, 8 Aug 2013 13:51:13 +0000 (UTC) Received: by mail-ve0-f198.google.com with SMTP id 15sf2744283vea.5 for ; Thu, 08 Aug 2013 06:51:13 -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=rOzVrcF786bVSxW3f70EOp6stEf202/Pkjc5MYVlfs0=; b=LREtg/YYE+fAFbEGEuUBfj0KdfNJHgpBVJlg5jD+b/IkPIqZcO1W84oBMvY0v+CgoP ObDVce/LYgN2NpDD7GJ0BpCGYqq39PCIwRxno+WPlwnSSBJ8jqtrSkJg0WKiojh9ehh7 rzZ99EIp/1Sw7z7lPHRwuj/prSsFs1W1loDPx8XUwC3icFuQp1arXRpzJiXrG1OfhWfe Gp7HrN6hdpETqGL3A4ycbimICfGoSOA4rYEs+H2NINtoZPfoh8HO/OSg/hm+uj9UQLei O1pkzyIsA5hXovciAnctZLK0q1jI+biXruyF0pgoCnT5cg3Y3Gc3xWQiz2Dz5Terr8Z/ T2/Q== X-Received: by 10.236.126.244 with SMTP id b80mr3455961yhi.31.1375969873093; Thu, 08 Aug 2013 06:51:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.94.163 with SMTP id dd3ls1115618qeb.92.gmail; Thu, 08 Aug 2013 06:51:13 -0700 (PDT) X-Received: by 10.58.155.6 with SMTP id vs6mr3180761veb.32.1375969872946; Thu, 08 Aug 2013 06:51:12 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id ae9si3086448vdc.132.2013.08.08.06.51.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:51:12 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.181 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.181; Received: by mail-ve0-f181.google.com with SMTP id jz10so3096008veb.12 for ; Thu, 08 Aug 2013 06:51:12 -0700 (PDT) X-Gm-Message-State: ALoCoQkjzMRnQ4yw4Ot9bb6wZrZ9Oxs7g+fgRmzuz00K9Qtqj5rE1ZXd9fKoed7YeCd+qCrutqAS X-Received: by 10.220.164.138 with SMTP id e10mr4044977vcy.27.1375969872860; Thu, 08 Aug 2013 06:51:12 -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 u4csp16803vcz; Thu, 8 Aug 2013 06:51:12 -0700 (PDT) X-Received: by 10.68.96.133 with SMTP id ds5mr6120945pbb.169.1375969872016; Thu, 08 Aug 2013 06:51:12 -0700 (PDT) Received: from mail-pb0-f41.google.com (mail-pb0-f41.google.com [209.85.160.41]) by mx.google.com with ESMTPS id qb10si9783712pac.17.2013.08.08.06.51.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:51:12 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.41 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.41; Received: by mail-pb0-f41.google.com with SMTP id rp2so3266248pbb.14 for ; Thu, 08 Aug 2013 06:51:11 -0700 (PDT) X-Received: by 10.66.26.194 with SMTP id n2mr6208499pag.151.1375969871604; Thu, 08 Aug 2013 06:51:11 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id il4sm14370679pbb.36.2013.08.08.06.51.07 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:51:10 -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 19/35] cpufreq: loongson2: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:21 +0530 Message-Id: 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.181 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]); }