From patchwork Sat Aug 10 06:44:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18969 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f199.google.com (mail-ve0-f199.google.com [209.85.128.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3962F246EB for ; Sat, 10 Aug 2013 06:52:12 +0000 (UTC) Received: by mail-ve0-f199.google.com with SMTP id m1sf1754041ves.2 for ; Fri, 09 Aug 2013 23:52:12 -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=9ZkOAAFyNZ76imkEDiu+8XIqMPrxj2CG2bfbuI5NYWM=; b=CqmLNgy55FpGtGpmvMl/BlQGeaE788xPL/NScvJb6xEr5F72onohpJtG4bLB8M02JD 8pIhdTcZ1a32OVO1XmyV14DCPgAUqknT10i7lF7/rbkO7p0wY9ynX5MBEJAV7xRfZtNI mFvileNIKh+QGf7IHqOUbS1gipeDb0xhKX3BmDuW5kJ/nIpbrpJUYIz91MRVH8j9fMX+ 1whcWXGWyIpNBK7SAJ/W0vbojuCV+kQMEPAIIcmRJl0po0Ny+4RwPoKnWRW6cxEPyNwS 0BtzwJ2B90d0wswUG0wReSyjI5ZsvD2+GwO1tt2G0PCxXeSrJd+tlBCiCwNSyXUwWgfU yhjg== X-Received: by 10.236.79.67 with SMTP id h43mr6719565yhe.46.1376117531912; Fri, 09 Aug 2013 23:52:11 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.5.197 with SMTP id u5ls1809672qeu.84.gmail; Fri, 09 Aug 2013 23:52:11 -0700 (PDT) X-Received: by 10.52.159.33 with SMTP id wz1mr1841413vdb.1.1376117531798; Fri, 09 Aug 2013 23:52:11 -0700 (PDT) Received: from mail-vb0-f49.google.com (mail-vb0-f49.google.com [209.85.212.49]) by mx.google.com with ESMTPS id y4si5672788vej.151.2013.08.09.23.52.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:52:11 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.49 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.49; Received: by mail-vb0-f49.google.com with SMTP id w16so4525373vbb.8 for ; Fri, 09 Aug 2013 23:52:11 -0700 (PDT) X-Gm-Message-State: ALoCoQnGDM7H8rj/3CeHktObCcVrcYO05r+qxGvVgFDkzR8ygrlV06Vy0RJ+hhVeozLcGasrm44b X-Received: by 10.52.180.229 with SMTP id dr5mr6458622vdc.20.1376117531728; Fri, 09 Aug 2013 23:52:11 -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 u4csp239vcz; Fri, 9 Aug 2013 23:52:11 -0700 (PDT) X-Received: by 10.66.150.97 with SMTP id uh1mr15056545pab.118.1376117530658; Fri, 09 Aug 2013 23:52:10 -0700 (PDT) Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by mx.google.com with ESMTPS id mp5si14651310pbc.123.2013.08.09.23.52.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:52:10 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.48 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.48; Received: by mail-pa0-f48.google.com with SMTP id kp13so5688502pab.21 for ; Fri, 09 Aug 2013 23:52:10 -0700 (PDT) X-Received: by 10.66.26.132 with SMTP id l4mr14949281pag.138.1376117530262; Fri, 09 Aug 2013 23:52:10 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id aj3sm26673944pad.8.2013.08.09.23.52.06 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:52:09 -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 , Kukjin Kim Subject: [PATCH 36/44] cpufreq: s5pv210: Use generic cpufreq routines Date: Sat, 10 Aug 2013 12:14:32 +0530 Message-Id: <2cdad5ad539ad2d4a480baee55a26fd60b2074a9.1376116345.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.49 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: , Most of the CPUFreq drivers do similar things in .exit() and .verify() routines and .attr. So its better if we have generic routines for them which can be used by cpufreq drivers then. This patch uses these generic routines for this driver. Cc: Kukjin Kim Signed-off-by: Viresh Kumar --- drivers/cpufreq/s5pv210-cpufreq.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/cpufreq/s5pv210-cpufreq.c b/drivers/cpufreq/s5pv210-cpufreq.c index c266a7e..0eafc52 100644 --- a/drivers/cpufreq/s5pv210-cpufreq.c +++ b/drivers/cpufreq/s5pv210-cpufreq.c @@ -174,14 +174,6 @@ static void s5pv210_set_refresh(enum s5pv210_dmc_port ch, unsigned long freq) __raw_writel(tmp1, reg); } -static int s5pv210_verify_speed(struct cpufreq_policy *policy) -{ - if (policy->cpu) - return -EINVAL; - - return cpufreq_frequency_table_verify(policy, s5pv210_freq_table); -} - static unsigned int s5pv210_getspeed(unsigned int cpu) { if (cpu) @@ -603,7 +595,7 @@ static int s5pv210_cpufreq_reboot_notifier_event(struct notifier_block *this, static struct cpufreq_driver s5pv210_driver = { .flags = CPUFREQ_STICKY, - .verify = s5pv210_verify_speed, + .verify = cpufreq_generic_frequency_table_verify, .target = s5pv210_target, .get = s5pv210_getspeed, .init = s5pv210_cpu_init,