From patchwork Sat Aug 10 06:44:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18971 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f69.google.com (mail-vb0-f69.google.com [209.85.212.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F26E1246EB for ; Sat, 10 Aug 2013 06:52:25 +0000 (UTC) Received: by mail-vb0-f69.google.com with SMTP id e13sf2787995vbg.4 for ; Fri, 09 Aug 2013 23:52:25 -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=tZbbZ1/LpBx4A7nPza6iLHNlf4pNomIIh5+Z7XO4RxI=; b=fv+unoLOoaHhduplQjdQfovaELX10pfEc1ogpjkUjKzX2acVwDv24Lt2T8562e8hgv CSRDIS7quuO2tExV0czUNZsGwsygIerq5ecs4qAR0DaKQEr8Svx68RtSFRiDELfPJtTW ArC7euKZV7saos0WO/tAvAA0jJZLAIUWzJl/BsvNKsYQB9K+YGjdOvVRPZlaUNO1Ig2G adQSnLRQsuV+sOuet4QgRHg+eoUt3EujKXSPQ9NbGYNZS26Yx4h7Q+p2SeqxqFn+HYYj IIYyiqJ3us/Y3BoIOx6Vmy3KL0fM1n1PWWCl0QLJ5MG01eqxaKVDEwzP3j5d76iV74vm l6cw== X-Received: by 10.236.91.4 with SMTP id g4mr6833849yhf.30.1376117545649; Fri, 09 Aug 2013 23:52:25 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.73.234 with SMTP id o10ls1755717qev.24.gmail; Fri, 09 Aug 2013 23:52:25 -0700 (PDT) X-Received: by 10.52.177.35 with SMTP id cn3mr1808317vdc.46.1376117545540; Fri, 09 Aug 2013 23:52:25 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id u1si5683699vcx.58.2013.08.09.23.52.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:52:25 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id gf12so1602763vcb.22 for ; Fri, 09 Aug 2013 23:52:25 -0700 (PDT) X-Gm-Message-State: ALoCoQn9nw5AbwhYnYXzfY3dJLqpImZUhsj+mre7RnDuo3FXqcX59IE9vjsL7mmQgaUsqFtIwZ2D X-Received: by 10.52.117.208 with SMTP id kg16mr6594365vdb.48.1376117545454; Fri, 09 Aug 2013 23:52:25 -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 u4csp252vcz; Fri, 9 Aug 2013 23:52:25 -0700 (PDT) X-Received: by 10.66.219.38 with SMTP id pl6mr4162489pac.59.1376117544593; Fri, 09 Aug 2013 23:52:24 -0700 (PDT) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by mx.google.com with ESMTPS id yl7si15781949pab.145.2013.08.09.23.52.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:52:24 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.46 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.46; Received: by mail-pa0-f46.google.com with SMTP id fa1so5715941pad.19 for ; Fri, 09 Aug 2013 23:52:24 -0700 (PDT) X-Received: by 10.66.252.234 with SMTP id zv10mr4214036pac.186.1376117544206; Fri, 09 Aug 2013 23:52:24 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id nv6sm24195483pbc.6.2013.08.09.23.52.20 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:52:23 -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 , Paul Mundt , linux-sh@vger.kernel.org Subject: [PATCH 38/44] cpufreq: sh: Use generic cpufreq routines Date: Sat, 10 Aug 2013 12:14:34 +0530 Message-Id: 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.220.177 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: Paul Mundt Cc: linux-sh@vger.kernel.org Signed-off-by: Viresh Kumar --- drivers/cpufreq/sh-cpufreq.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/cpufreq/sh-cpufreq.c b/drivers/cpufreq/sh-cpufreq.c index 1362e88..91c6446 100644 --- a/drivers/cpufreq/sh-cpufreq.c +++ b/drivers/cpufreq/sh-cpufreq.c @@ -154,11 +154,6 @@ static int sh_cpufreq_cpu_exit(struct cpufreq_policy *policy) return 0; } -static struct freq_attr *sh_freq_attr[] = { - &cpufreq_freq_attr_scaling_available_freqs, - NULL, -}; - static struct cpufreq_driver sh_cpufreq_driver = { .name = "sh", .get = sh_cpufreq_get, @@ -166,7 +161,7 @@ static struct cpufreq_driver sh_cpufreq_driver = { .verify = sh_cpufreq_verify, .init = sh_cpufreq_cpu_init, .exit = sh_cpufreq_cpu_exit, - .attr = sh_freq_attr, + .attr = cpufreq_generic_attr, }; static int __init sh_cpufreq_module_init(void)