From patchwork Fri Sep 13 12:59:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20083 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f70.google.com (mail-vb0-f70.google.com [209.85.212.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5A5C6202E6 for ; Fri, 13 Sep 2013 13:06:33 +0000 (UTC) Received: by mail-vb0-f70.google.com with SMTP id h10sf1190431vbh.1 for ; Fri, 13 Sep 2013 06:06:33 -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=u9bDPbXCZyxhWBXnDgjo3PLYuLm/RnOmwZayR+9402k=; b=UtSaLyAmi+Bu7zfairXCRsZhSj7Sca/QqCXWBgZ9hvJAiE3chbuY7RdHnavvsZkd2x DsQadp3Ti+Ly7XuhtrJp4C94OOvtEVr6Al8wGJlBVW0dmbdAO+Vli1vbWW1plDLRCe1I FLPpmYh5vEdDkCKed5HHoQRqJUbq2bx9pLUCYyMuybZBozyRX+yLF3lHO7yxFMQdweo4 9kkUuTVG/kz/EMRNWoKcR40CGc2y7pLGS5iiKbbxq5x0nMtDssyFUneWvu3cSqxT2Fu3 bDfI/9cK3bRj+mWiuj/gs/637prSYKiJK6jlYUNwhoSFvpF5a4eG8Sp1nr3HeymHiduE s5Bw== X-Gm-Message-State: ALoCoQmosmaO1xNKw9zWWi/wqFWGtjlK77G22tERZIXU9gLU5mYTx2APc5rEyuis+pPvzQzVKSFd X-Received: by 10.236.6.134 with SMTP id 6mr5276183yhn.7.1379077593102; Fri, 13 Sep 2013 06:06:33 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.74.35 with SMTP id q3ls1094379qev.50.gmail; Fri, 13 Sep 2013 06:06:32 -0700 (PDT) X-Received: by 10.58.207.103 with SMTP id lv7mr202804vec.33.1379077592833; Fri, 13 Sep 2013 06:06:32 -0700 (PDT) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id b5si3102616vcf.54.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:06:32 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.175 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.175; Received: by mail-ve0-f175.google.com with SMTP id jy13so907199veb.20 for ; Fri, 13 Sep 2013 06:06:32 -0700 (PDT) X-Received: by 10.52.110.98 with SMTP id hz2mr9186177vdb.1.1379077592712; Fri, 13 Sep 2013 06:06:32 -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 u4csp79593vcz; Fri, 13 Sep 2013 06:06:31 -0700 (PDT) X-Received: by 10.68.129.201 with SMTP id ny9mr13530685pbb.70.1379077591569; Fri, 13 Sep 2013 06:06:31 -0700 (PDT) Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by mx.google.com with ESMTPS id sj5si8076040pab.313.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:06:31 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.42 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.42; Received: by mail-pa0-f42.google.com with SMTP id lj1so2529032pab.1 for ; Fri, 13 Sep 2013 06:06:31 -0700 (PDT) X-Received: by 10.66.142.132 with SMTP id rw4mr12842701pab.6.1379077591136; Fri, 13 Sep 2013 06:06:31 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id j9sm17974891paj.18.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:06:30 -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 Subject: [PATCH 029/228] cpufreq: omap: use cpufreq_table_validate_and_show() Date: Fri, 13 Sep 2013 18:29:35 +0530 Message-Id: <26205fdeb757f9b549331cfe938b8a99f6078746.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.175 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(). Acked-by: Santosh Shilimkar Signed-off-by: Viresh Kumar --- drivers/cpufreq/omap-cpufreq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c index f31fcfc..b68ce4e 100644 --- a/drivers/cpufreq/omap-cpufreq.c +++ b/drivers/cpufreq/omap-cpufreq.c @@ -191,12 +191,10 @@ static int omap_cpu_init(struct cpufreq_policy *policy) atomic_inc_return(&freq_table_users); - result = cpufreq_frequency_table_cpuinfo(policy, freq_table); + result = cpufreq_table_validate_and_show(policy, freq_table); if (result) goto fail_table; - cpufreq_frequency_table_get_attr(freq_table, policy->cpu); - policy->cur = omap_getspeed(policy->cpu); /*