From patchwork Fri Sep 13 13:00:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20139 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7AA4920358 for ; Fri, 13 Sep 2013 13:13:06 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id u18sf1195755qcx.10 for ; Fri, 13 Sep 2013 06:13:06 -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=+p9M3tHZ4WT/3FGYm/idTH2GfQX1tT8Y8AhOpnK5BEU=; b=gv7XyzKOXp1WtDgnHIh9JArWf/NcqkyNExGE3CAQFNQxtw4nzOLgfPwEHI+/SUgJC5 O2wAk2SI4/4L89MuJFTsPn4qqoZDahfEha1+cNnZYvQlUAz3aZC5VqOPZsdnk41H6tgc s812SPcI1R1OczDj7UjyM1JLPKG1U5iedWe+JEjegR5PQe5ErDDd2PMvfFL5lLhB94mh pbtnsYfbTCaOvj2mzyca5NbC2UKeyyDQuXJfwxEk6MHeS1T+VkqeS8jSJlMjI4I97RK7 Fv2WkSAGo3CnLolINNyZCYOzouGnUTg/gkiW74E35yZ4DXhqirbw9SU45ZwN4VSkfTkM wMNQ== X-Gm-Message-State: ALoCoQn74nQLXFfcEoGqOb2bLtbboy7snYP2LLID+bQOefL3R7o+W6xW3o/MGR0pVq/74u0FZZpM X-Received: by 10.236.94.205 with SMTP id n53mr5010668yhf.44.1379077986291; Fri, 13 Sep 2013 06:13:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.121.231 with SMTP id ln7ls1147009qeb.57.gmail; Fri, 13 Sep 2013 06:13:06 -0700 (PDT) X-Received: by 10.221.56.194 with SMTP id wd2mr12131059vcb.7.1379077986055; Fri, 13 Sep 2013 06:13:06 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id tf3si3115920vec.30.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:13:06 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.178 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.178; Received: by mail-vc0-f178.google.com with SMTP id ha12so885574vcb.23 for ; Fri, 13 Sep 2013 06:13:06 -0700 (PDT) X-Received: by 10.58.161.116 with SMTP id xr20mr11946912veb.2.1379077985936; Fri, 13 Sep 2013 06:13:05 -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 u4csp79941vcz; Fri, 13 Sep 2013 06:13:05 -0700 (PDT) X-Received: by 10.68.218.6 with SMTP id pc6mr1998076pbc.187.1379077985027; Fri, 13 Sep 2013 06:13:05 -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 jx3si7394278pbc.324.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:13:05 -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 rq2so1217687pbb.5 for ; Fri, 13 Sep 2013 06:13:04 -0700 (PDT) X-Received: by 10.66.249.134 with SMTP id yu6mr15390844pac.37.1379077984621; Fri, 13 Sep 2013 06:13:04 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id nv6sm11712788pbc.6.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:13:04 -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 , Paul Mundt , linux-sh@vger.kernel.org Subject: [PATCH 085/228] cpufreq: sh: Use generic cpufreq routines Date: Fri, 13 Sep 2013 18:30:31 +0530 Message-Id: <74417e54eb4b55ce4c54f24c3c39c2ea1cfde3f1.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.220.178 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 f1fb944..c681b86 100644 --- a/drivers/cpufreq/sh-cpufreq.c +++ b/drivers/cpufreq/sh-cpufreq.c @@ -151,11 +151,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, @@ -163,7 +158,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)