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: 2890741 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DBC77BFF05 for ; Fri, 13 Sep 2013 16:23:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3DC0A20266 for ; Fri, 13 Sep 2013 16:23:06 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 622EC2025D for ; Fri, 13 Sep 2013 16:23:01 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKTTJ-0006SM-FP; Fri, 13 Sep 2013 13:31:42 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKTSb-0000uJ-Ua; Fri, 13 Sep 2013 13:30:57 +0000 Received: from mail-pb0-f44.google.com ([209.85.160.44]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKTHI-0007VB-NY for linux-arm-kernel@lists.infradead.org; Fri, 13 Sep 2013 13:19:17 +0000 Received: by mail-pb0-f44.google.com with SMTP id xa7so1228397pbc.17 for ; Fri, 13 Sep 2013 06:18:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=bs/q0vdMcSbvxQdXd7O9efJ1vv5BfHIPAgOxRHqhIvs=; b=GPncYSKdB4t3NrvnLABLMDJSBuSSjOeTPzkTzZYdaFL4a6Btw1k13J9oHMZDsGVbwi a6g2Cuggo2zRi5H9igLVBzJfA27K2yXEloCkE3x1ljvohp6ujD8kwLe+H5A9UUxUbEmq XedRqjAHW4IM4KIsnuMQIFJ19/xZdRlsvEEcJvyNpevdBUI289XwC79JrmT8peBwJZe0 82K6u3s8+wdkpShEkS+XHQ8Xe3kvco1HD6ZbAv55OZ2kuDR/aRp41PRPQopj1kyh7tfb p1rWbIDedUrNkSY2r263YBGwwZRkfzusZkUcOhYGYbV1P2o42UHRzL05vVsnhNdtLb1g E1ug== X-Gm-Message-State: ALoCoQm42PChxUJBwbbxKFmSOvE1ZrOFBCx9KWOiFwYx3qgWKAj3v9UrC/43hvtntdPCTQKP0L5s 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130913_091916_948638_017E597B X-CRM114-Status: UNSURE ( 9.81 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Viresh Kumar , patches@linaro.org, linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 = {