From patchwork Wed Aug 21 14:42:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19381 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C6E43248E6 for ; Wed, 21 Aug 2013 14:43:20 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id hf12sf440963vcb.7 for ; Wed, 21 Aug 2013 07:43:20 -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=ha+A9voR6Gp+ZPfTKW8accLK1p1cgeBNhVrzIUJilAI=; b=hk3Xajgk9Be25lEFxWfM3WV6IPuUjLGMqK3OtlhwCHu6mJwxhjZi3uec/9KKYWjQCK lRb1G8ifrIoTcIHdYICA2nNDSW1sIFU5miaSjAsL1rTxmsJ+dnXSH9CBlT9rL5wh5zhT RZHO7NJdzXytezaIUd5TlqUikqYJnSxcoq7+UxsDdtp9jjhH+MOZxeXtRxxi538XaW4A oeDQWD8vjnP4ydJ6F4T3bQWPxzGrsiciVQimIVKSnGwjX02K88f1hVQjyAjR0CqKiGiA igvpLU3fiGLtXe2mZORSxr6kmRCGsGlspwqfTv8HtXvrQ1t1KemCw1PJ9Rulbvil7ctu MAJw== X-Received: by 10.58.205.143 with SMTP id lg15mr668239vec.13.1377096200594; Wed, 21 Aug 2013 07:43:20 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.15.136 with SMTP id x8ls671671qec.20.gmail; Wed, 21 Aug 2013 07:43:20 -0700 (PDT) X-Received: by 10.220.103.140 with SMTP id k12mr215645vco.39.1377096200505; Wed, 21 Aug 2013 07:43:20 -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 jf10si2219505vdb.63.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 Aug 2013 07:43:20 -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 x14so361324vbb.23 for ; Wed, 21 Aug 2013 07:43:20 -0700 (PDT) X-Gm-Message-State: ALoCoQmey7dw4Rauozq77Ead4cgo6LljUndtrLjyH0Fq8soUyPRQNuSWaAiQhe+PE6EWTHgyWpHk X-Received: by 10.58.237.105 with SMTP id vb9mr6788037vec.2.1377096200412; Wed, 21 Aug 2013 07:43:20 -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 u4csp224560vcz; Wed, 21 Aug 2013 07:43:19 -0700 (PDT) X-Received: by 10.68.204.165 with SMTP id kz5mr50259pbc.159.1377096199272; Wed, 21 Aug 2013 07:43:19 -0700 (PDT) Received: from mail-pd0-f175.google.com (mail-pd0-f175.google.com [209.85.192.175]) by mx.google.com with ESMTPS id if5si3649077pad.60.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 Aug 2013 07:43:19 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.175 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.175; Received: by mail-pd0-f175.google.com with SMTP id q10so502202pdj.20 for ; Wed, 21 Aug 2013 07:43:18 -0700 (PDT) X-Received: by 10.66.158.196 with SMTP id ww4mr9941632pab.57.1377096198792; Wed, 21 Aug 2013 07:43:18 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id eq5sm8836287pbc.15.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 21 Aug 2013 07:43:18 -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 , Shawn Guo Subject: [PATCH 05/14] cpufreq: imx6q: use cpufreq_generic_init() routine Date: Wed, 21 Aug 2013 20:12:24 +0530 Message-Id: <0394a2f6338e937f5b29cdca883d22e04ee0cce4.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: Shawn Guo 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 f35c674..5efd9b7 100644 --- a/drivers/cpufreq/imx6q-cpufreq.c +++ b/drivers/cpufreq/imx6q-cpufreq.c @@ -150,18 +150,7 @@ static int imx6q_set_target(struct cpufreq_policy *policy, unsigned int index) 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 = {