From patchwork Fri Sep 13 13:01:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20185 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f198.google.com (mail-ye0-f198.google.com [209.85.213.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 055ED20358 for ; Fri, 13 Sep 2013 13:18:33 +0000 (UTC) Received: by mail-ye0-f198.google.com with SMTP id m11sf1156719yen.5 for ; Fri, 13 Sep 2013 06:18: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=8+s0bPM6O4sy190nwiJ+iCOTzcjl0h2kXl5kdMHpRD8=; b=OTjx7tCmxcmRN/8l85uWVL1jkjdrkwUyxgC6kV5TFunHsJyjWF0zn1hTQ8WDAt+03t kjYqIxMoYBKOzkEKNOXko8XdFq6no9ux/8LaqUq4EHdEAEsyJ698FIxqw5Kk4+4rc6tc Im/d6NzNZ8W/3wDMoxeq0UEwdOKlJVG4vfHg5R1Q9cbeQsa/HXkvaF/wvoSqVvLYWwBO Tot4bkK3vysmza4QHA43+bb06+JE9glL5KzBeUyrDeXLoI3LB6anEuELVi05KwTqb6c5 p3ovg51tPnSfm2cko3XlvRaIJFdc8lhFyzCjDBJVljnmHjWZVi9qTIaYtiuuv+LB+Fb5 /aZw== X-Gm-Message-State: ALoCoQlpfXZH7gA+D6NRhZmuGfOi3rUJcSMnN1R7n6A56dydDOaIBrmvqfx8ce5ySr81qXvp1bcG X-Received: by 10.236.163.67 with SMTP id z43mr4932725yhk.27.1379078313704; Fri, 13 Sep 2013 06:18:33 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.107.136 with SMTP id hc8ls1117449qeb.55.gmail; Fri, 13 Sep 2013 06:18:33 -0700 (PDT) X-Received: by 10.52.120.78 with SMTP id la14mr10308620vdb.9.1379078313505; Fri, 13 Sep 2013 06:18:33 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id w20si3097630vco.143.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:18:33 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id m17so905777vca.31 for ; Fri, 13 Sep 2013 06:18:33 -0700 (PDT) X-Received: by 10.220.11.7 with SMTP id r7mr12038756vcr.12.1379078313366; Fri, 13 Sep 2013 06:18:33 -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 u4csp80217vcz; Fri, 13 Sep 2013 06:18:32 -0700 (PDT) X-Received: by 10.68.130.34 with SMTP id ob2mr13406615pbb.155.1379078312301; Fri, 13 Sep 2013 06:18:32 -0700 (PDT) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by mx.google.com with ESMTPS id uh5si11229880pab.93.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:18:32 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.46 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.46; Received: by mail-pa0-f46.google.com with SMTP id fa1so2513139pad.5 for ; Fri, 13 Sep 2013 06:18:31 -0700 (PDT) X-Received: by 10.68.255.69 with SMTP id ao5mr13512154pbd.66.1379078311784; Fri, 13 Sep 2013 06:18:31 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id yo2sm18072582pab.8.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:18:31 -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 , Sekhar Nori Subject: [PATCH 131/228] cpufreq: davinci: use cpufreq_generic_init() routine Date: Fri, 13 Sep 2013 18:31:17 +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.220.172 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: , Use generic cpufreq_generic_init() routine instead of replicating the same code here. Cc: Sekhar Nori Signed-off-by: Viresh Kumar --- drivers/cpufreq/davinci-cpufreq.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/cpufreq/davinci-cpufreq.c b/drivers/cpufreq/davinci-cpufreq.c index 55cf094..972583b 100644 --- a/drivers/cpufreq/davinci-cpufreq.c +++ b/drivers/cpufreq/davinci-cpufreq.c @@ -136,21 +136,13 @@ static int davinci_cpu_init(struct cpufreq_policy *policy) return result; } - result = cpufreq_table_validate_and_show(policy, freq_table); - if (result) { - pr_err("%s: cpufreq_table_validate_and_show() failed", - __func__); - return result; - } - /* * Time measurement across the target() function yields ~1500-1800us * time taken with no drivers on notification list. * Setting the latency to 2000 us to accommodate addition of drivers * to pre/post change notification list. */ - policy->cpuinfo.transition_latency = 2000 * 1000; - return 0; + return cpufreq_generic_init(policy, freq_table, 2000 * 1000); } static struct cpufreq_driver davinci_driver = {