Message ID | cf13095eb15c28e5fb4ab90277833aceb301f0b2.1375964117.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBBUOER2IAKGQEQOG6V7A@linaro.org> 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 <linaro@patches.linaro.org>; Thu, 8 Aug 2013 13:51:13 +0000 (UTC) Received: by mail-ve0-f198.google.com with SMTP id 15sf2744283vea.5 for <linaro@patches.linaro.org>; 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 <patchwork-forward@linaro.org> (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 <patchwork-forward@linaro.org>; 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 <patches@linaro.org> (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 <patches@linaro.org>; 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 <multiple recipients> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:51:10 -0700 (PDT) From: Viresh Kumar <viresh.kumar@linaro.org> 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 <viresh.kumar@linaro.org>, John Crispin <blogic@openwrt.org> Subject: [PATCH 19/35] cpufreq: loongson2: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:21 +0530 Message-Id: <cf13095eb15c28e5fb4ab90277833aceb301f0b2.1375964117.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: <cover.1375964117.git.viresh.kumar@linaro.org> References: <cover.1375964117.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1375964117.git.viresh.kumar@linaro.org> References: <cover.1375964117.git.viresh.kumar@linaro.org> 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: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
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]); }
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Cc: John Crispin <blogic@openwrt.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- drivers/cpufreq/loongson2_cpufreq.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)