From patchwork Fri Sep 13 13:01: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: 20188 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f198.google.com (mail-vc0-f198.google.com [209.85.220.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E8A5E20358 for ; Fri, 13 Sep 2013 13:18:53 +0000 (UTC) Received: by mail-vc0-f198.google.com with SMTP id ht10sf1197763vcb.5 for ; Fri, 13 Sep 2013 06:18:53 -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=bs/q0vdMcSbvxQdXd7O9efJ1vv5BfHIPAgOxRHqhIvs=; b=K3TzYJ4opT5lqM8wX+ymsBdhml1TWt0PFQcF/97WyiAj1fBiASeJRseXjOx3HT0hRa bVtTLIj8lyNIT5psHx2Rxg0aaZMK4Fd4rkzJc9KLLy6eBYRGAu+1wfHis+fVre39ZsBo cMoRYxzvDSmfMLdy+yrjrJB6as7jNV3LjV/3THNBksKhoHKVtSUjpN/k++mpiV3P6BBc JgDzqrINZKw6jlqvRXAae+yCwaCaUicbOY4sWcI8XJ51RKR0/zmisre82f6uJBlxu7wz lXr9ESxYa2hvNimINgYR2mswpM/LzEdk1pBa+qTddo0YaVtye+kgUA7ebdscOFQ5vyeU 4RtQ== X-Gm-Message-State: ALoCoQntMrdF9FRtzJTIafxJv2pysdyZvFxItHfqJnzPG1b4ZnsvsLsf3SgLARKKaRqU+qdLfBQJ X-Received: by 10.236.75.201 with SMTP id z49mr5145332yhd.0.1379078333617; Fri, 13 Sep 2013 06:18:53 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.104.177 with SMTP id gf17ls1109829qeb.4.gmail; Fri, 13 Sep 2013 06:18:53 -0700 (PDT) X-Received: by 10.220.74.69 with SMTP id t5mr12048198vcj.18.1379078333397; Fri, 13 Sep 2013 06:18:53 -0700 (PDT) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id o5si3101458vdw.89.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:18:53 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.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.128.172; Received: by mail-ve0-f172.google.com with SMTP id oz11so948349veb.31 for ; Fri, 13 Sep 2013 06:18:53 -0700 (PDT) X-Received: by 10.58.75.131 with SMTP id c3mr8530781vew.12.1379078333309; Fri, 13 Sep 2013 06:18:53 -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 u4csp80238vcz; Fri, 13 Sep 2013 06:18:52 -0700 (PDT) X-Received: by 10.66.158.131 with SMTP id wu3mr2062019pab.181.1379078332435; Fri, 13 Sep 2013 06:18:52 -0700 (PDT) Received: from mail-pb0-f46.google.com (mail-pb0-f46.google.com [209.85.160.46]) by mx.google.com with ESMTPS id fl1si11227737pab.112.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:18:52 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.46 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.46; Received: by mail-pb0-f46.google.com with SMTP id rq2so1226361pbb.19 for ; Fri, 13 Sep 2013 06:18:52 -0700 (PDT) X-Received: by 10.68.95.4 with SMTP id dg4mr13561122pbb.34.1379078332040; Fri, 13 Sep 2013 06:18:52 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id wp8sm11721121pbc.26.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:18:51 -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 134/228] cpufreq: imx6q: use cpufreq_generic_init() routine Date: Fri, 13 Sep 2013 18:31:20 +0530 Message-Id: <4c8cefed1d41441f34b6638dca9c274cb1619b13.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.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. Signed-off-by: Viresh Kumar --- drivers/cpufreq/imx6q-cpufreq.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c index 649547f..3fb3f59 100644 --- a/drivers/cpufreq/imx6q-cpufreq.c +++ b/drivers/cpufreq/imx6q-cpufreq.c @@ -153,18 +153,7 @@ post_notify: static int imx6q_cpufreq_init(struct cpufreq_policy *policy) { - int ret; - - ret = cpufreq_table_validate_and_show(policy, freq_table); - if (ret) { - dev_err(cpu_dev, "invalid frequency table: %d\n", ret); - return ret; - } - - policy->cpuinfo.transition_latency = transition_latency; - cpumask_setall(policy->cpus); - - return 0; + return cpufreq_generic_init(policy, freq_table, transition_latency); } static struct cpufreq_driver imx6q_cpufreq_driver = {