From patchwork Fri Sep 13 13:01:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20189 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 68BD720358 for ; Fri, 13 Sep 2013 13:19:01 +0000 (UTC) Received: by mail-qc0-f200.google.com with SMTP id x20sf1204447qcv.3 for ; Fri, 13 Sep 2013 06:19:01 -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=uA/S0SaG3l6s85mMpBoJgSNbGFIXlkxgByYXrnQphBE=; b=CU1BEy/grDDu0+gNsdcKZq+reB2mr+H7dBuntdWKGikAdQ/bNXeXlrLfjqvLYTByVl 0jihMbmnTkbFWt+PEjpcMP3buj7JcCTmHqntJrguvnv+lzQfhGFAeFFPAjc0PIUqW7lV 6XLtAtbXGZI42v+TiY/jhBskjhudmH9fSfqcxZWSi8blU/cjdmYJz+52yW7wlI1qZjyL jXrZI8B1coVIWujp9YupXuWzaqKFuqjlE2nbxMv2xz7XdPHDeZa6nTQrNWvF7pYrJvaK rtjSFc9O6WFEmkp0wwApipA3fALvCrP/2+KrotUg7WrIGlkPFxvaezuCH9dug+o86R6z ccXg== X-Gm-Message-State: ALoCoQlJDFO6kCv0aG9bt8L810BOOJKgrGuPNe7mtfy7LJCHJsO2sEcyZEHAqyaijUz/0/xtz373 X-Received: by 10.236.216.17 with SMTP id f17mr361318yhp.18.1379078341231; Fri, 13 Sep 2013 06:19:01 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.38.70 with SMTP id e6ls1199790qek.77.gmail; Fri, 13 Sep 2013 06:19:01 -0700 (PDT) X-Received: by 10.52.107.134 with SMTP id hc6mr9734066vdb.10.1379078340986; Fri, 13 Sep 2013 06:19:00 -0700 (PDT) Received: from mail-vb0-f41.google.com (mail-vb0-f41.google.com [209.85.212.41]) by mx.google.com with ESMTPS id lr1si3109121vcb.94.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:19:00 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.41 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.41; Received: by mail-vb0-f41.google.com with SMTP id g17so903983vbg.14 for ; Fri, 13 Sep 2013 06:19:00 -0700 (PDT) X-Received: by 10.52.165.131 with SMTP id yy3mr5985974vdb.25.1379078340908; Fri, 13 Sep 2013 06:19:00 -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 u4csp80244vcz; Fri, 13 Sep 2013 06:19:00 -0700 (PDT) X-Received: by 10.66.161.138 with SMTP id xs10mr15538109pab.56.1379078339694; Fri, 13 Sep 2013 06:18:59 -0700 (PDT) Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by mx.google.com with ESMTPS id fa1si11219723pab.129.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:18:59 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.49 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.49; Received: by mail-pb0-f49.google.com with SMTP id xb4so1226053pbc.22 for ; Fri, 13 Sep 2013 06:18:59 -0700 (PDT) X-Received: by 10.68.175.33 with SMTP id bx1mr13459930pbc.21.1379078339311; Fri, 13 Sep 2013 06:18:59 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id et3sm11700745pbc.43.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:18:58 -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 135/228] cpufreq: kirkwood: use cpufreq_generic_init() routine Date: Fri, 13 Sep 2013 18:31:21 +0530 Message-Id: <76198830de8f8fd9f8bcbba08ac4888d15e2c88a.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.212.41 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. 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 dc434c4..fff8653 100644 --- a/drivers/cpufreq/kirkwood-cpufreq.c +++ b/drivers/cpufreq/kirkwood-cpufreq.c @@ -120,10 +120,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 = {