From patchwork Thu Aug 8 13:48:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18867 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f69.google.com (mail-qa0-f69.google.com [209.85.216.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2CAEF246A4 for ; Thu, 8 Aug 2013 13:51:06 +0000 (UTC) Received: by mail-qa0-f69.google.com with SMTP id bv4sf821444qab.0 for ; Thu, 08 Aug 2013 06:51:06 -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=sdrM4OhF4LBOs0ILK9sy6B3YNoCuSztLZP7Crz8Htt4=; b=ZA9rACjd4b9EYuagIe0xvROPA4F5LuYlKNkIbsrNXW4Yb5eTQ4u3rUvY6CqqtBUyE+ wRk35NKp5OXQcy5FKsWtRKT0T42nFBr8n8zrY3WPngloerj5mouXQtFf9i+s0Ef9HiyF v5uO5mrhz1NWEGyQnGh5r4Qd910fB3KRY7wkqyqj4HsvPj8XInALzMJa0bjqZf0G+zHI rOV5AZPJxJsHW+I7tmu0GbcZcxAJtdfzqEyzTsNA2YKB3Uh6qZ1DBqEfGuUgObPn09S+ a36XFXUhGb7cVM1CaE4qgLsMiFrosh9XCFhHh15yQYu/jhUW9272EceTAoyvSrv/d3eV gSxQ== X-Received: by 10.236.199.102 with SMTP id w66mr3454190yhn.41.1375969865955; Thu, 08 Aug 2013 06:51:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.39.165 with SMTP id q5ls1186436qek.22.gmail; Thu, 08 Aug 2013 06:51:05 -0700 (PDT) X-Received: by 10.58.155.6 with SMTP id vs6mr3180483veb.32.1375969865829; Thu, 08 Aug 2013 06:51:05 -0700 (PDT) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id y4si3092526vcy.105.2013.08.08.06.51.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:51:05 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.173 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.173; Received: by mail-ve0-f173.google.com with SMTP id cy12so3055427veb.4 for ; Thu, 08 Aug 2013 06:51:05 -0700 (PDT) X-Gm-Message-State: ALoCoQnJR71XrNP4S2YDU0hCER3bcqy8ijwgWAdzYpL8sez9QuhrAHwu6rn4d96wEtrE7J/aIfBa X-Received: by 10.58.211.227 with SMTP id nf3mr3220337vec.20.1375969865759; Thu, 08 Aug 2013 06:51:05 -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 u4csp16795vcz; Thu, 8 Aug 2013 06:51:05 -0700 (PDT) X-Received: by 10.66.14.73 with SMTP id n9mr5947010pac.190.1375969864890; Thu, 08 Aug 2013 06:51:04 -0700 (PDT) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by mx.google.com with ESMTPS id vs7si8572031pbc.355.2013.08.08.06.51.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:51:04 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.41 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.41; Received: by mail-pa0-f41.google.com with SMTP id bj1so2903270pad.28 for ; Thu, 08 Aug 2013 06:51:04 -0700 (PDT) X-Received: by 10.68.231.200 with SMTP id ti8mr6244229pbc.46.1375969864505; Thu, 08 Aug 2013 06:51:04 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id sz6sm16717607pab.5.2013.08.08.06.51.00 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 Aug 2013 06:51:03 -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 18/35] cpufreq: longhaul: use cpufreq_table_validate_and_show() Date: Thu, 8 Aug 2013 19:18:20 +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.173 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(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/longhaul.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/cpufreq/longhaul.c b/drivers/cpufreq/longhaul.c index 4ada1cc..70b66fd 100644 --- a/drivers/cpufreq/longhaul.c +++ b/drivers/cpufreq/longhaul.c @@ -921,13 +921,7 @@ static int longhaul_cpu_init(struct cpufreq_policy *policy) policy->cpuinfo.transition_latency = 200000; /* nsec */ policy->cur = calc_speed(longhaul_get_cpu_mult()); - ret = cpufreq_frequency_table_cpuinfo(policy, longhaul_table); - if (ret) - return ret; - - cpufreq_frequency_table_get_attr(longhaul_table, policy->cpu); - - return 0; + return cpufreq_table_validate_and_show(policy, longhaul_table); } static int longhaul_cpu_exit(struct cpufreq_policy *policy)