From patchwork Wed Aug 21 14:42:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19382 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f197.google.com (mail-ye0-f197.google.com [209.85.213.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6971E248E6 for ; Wed, 21 Aug 2013 14:43:27 +0000 (UTC) Received: by mail-ye0-f197.google.com with SMTP id q7sf447686yen.4 for ; Wed, 21 Aug 2013 07:43:27 -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=Gqg2LiTX1I4pBmDoHZsR5rLmPdqufnDwMcFEClKzlAg=; b=K+YTN1xRccawbgVKo/JsdomF7/bERXWDql7EJmD7OOR6ePjSkKiQpMdsWtGwu4ZgmQ UT/zRaMpJRzn4xYiOOEfwRpWHZle9y8HTMZ7MpiCX7CSJxbB5dAdvJSFH4ubIb6xjyCL KQgpKUk8nMXFx3+eiWV1P3E3Np19qEbY2oE5SSKHKl3QNz6yeYF5w+TomSsK94JjL+xW rgBlB7qntwyQvtf/BD7zaMuE7OjZJgcIo7B3on6TYC1wfh6yUeQYyqMzI9NXAV8XYy63 eMgD1Sk3snlLBlrcekZiDMm2d72bAgUYfBPXyP5/btPH5NFPlHk/68Zi+Mddj0R7yIPe IScQ== X-Received: by 10.58.249.42 with SMTP id yr10mr100740vec.40.1377096207151; Wed, 21 Aug 2013 07:43:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.95.138 with SMTP id dk10ls652249qeb.23.gmail; Wed, 21 Aug 2013 07:43:27 -0700 (PDT) X-Received: by 10.58.19.162 with SMTP id g2mr6842272vee.12.1377096207065; Wed, 21 Aug 2013 07:43:27 -0700 (PDT) Received: from mail-vb0-f50.google.com (mail-vb0-f50.google.com [209.85.212.50]) by mx.google.com with ESMTPS id zt2si2218661vec.74.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 Aug 2013 07:43:27 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.50 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.50; Received: by mail-vb0-f50.google.com with SMTP id x14so364713vbb.37 for ; Wed, 21 Aug 2013 07:43:27 -0700 (PDT) X-Gm-Message-State: ALoCoQmjCBCq7aEQjBQHEa3x92Wae4DqJyYKLTR1OJb6pPzQ3SZvWfHyULY/CS7mFPBuIcERPvQd X-Received: by 10.220.103.140 with SMTP id k12mr216031vco.39.1377096206980; Wed, 21 Aug 2013 07:43:26 -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 u4csp224569vcz; Wed, 21 Aug 2013 07:43:26 -0700 (PDT) X-Received: by 10.68.162.194 with SMTP id yc2mr65600pbb.141.1377096206122; Wed, 21 Aug 2013 07:43:26 -0700 (PDT) Received: from mail-pb0-f48.google.com (mail-pb0-f48.google.com [209.85.160.48]) by mx.google.com with ESMTPS id hs9si5408475pbc.154.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 Aug 2013 07:43:26 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.48 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.48; Received: by mail-pb0-f48.google.com with SMTP id ma3so475791pbc.7 for ; Wed, 21 Aug 2013 07:43:25 -0700 (PDT) X-Received: by 10.68.171.193 with SMTP id aw1mr30461pbc.197.1377096205657; Wed, 21 Aug 2013 07:43:25 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id fk4sm10583294pab.23.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 21 Aug 2013 07:43:25 -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, Viresh Kumar , Andrew Lunn Subject: [PATCH 06/14] cpufreq: kirkwood: use cpufreq_generic_init() routine Date: Wed, 21 Aug 2013 20:12:25 +0530 Message-Id: <22ecc3ec7bebf7d9e643dc10787798cfefa12280.1377093938.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.212.50 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: Andrew Lunn Signed-off-by: Viresh Kumar --- drivers/cpufreq/kirkwood-cpufreq.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/cpufreq/kirkwood-cpufreq.c b/drivers/cpufreq/kirkwood-cpufreq.c index fcf461e..7de4412 100644 --- a/drivers/cpufreq/kirkwood-cpufreq.c +++ b/drivers/cpufreq/kirkwood-cpufreq.c @@ -93,10 +93,7 @@ static int kirkwood_cpufreq_target(struct cpufreq_policy *policy, /* Module init and exit code */ static int kirkwood_cpufreq_cpu_init(struct cpufreq_policy *policy) { - /* cpuinfo and default policy values */ - policy->cpuinfo.transition_latency = 5000; /* 5uS */ - - return cpufreq_table_validate_and_show(policy, kirkwood_freq_table); + return cpufreq_generic_init(policy, kirkwood_freq_table, 5000); } static struct cpufreq_driver kirkwood_cpufreq_driver = {