From patchwork Fri Sep 13 13:01:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20194 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f199.google.com (mail-ye0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B349520358 for ; Fri, 13 Sep 2013 13:19:36 +0000 (UTC) Received: by mail-ye0-f199.google.com with SMTP id l4sf1164709yen.2 for ; Fri, 13 Sep 2013 06:19:36 -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=OlwI39DAUuXV26u3KgsUmKmKFXPDt0qIwR3hf6oXIpQ=; b=CmRARJQSRaY1yz/s58VBY2J3AgB0/6XRy5n3unS6UnGHJ1A43KJiMmsd1+q/qp4Bxr WwMO5rJ05mOxZCnTDAF+QiAlpEWKmct1GIq8fejrcZ7AtA3k44CJrJBefA0YtEJEEZV0 DdShASQaCUQnM9sNpxPSC5wJ/zrFb2RMqNmAKAlFec1MqXQFJXuStI3CNaJAJzrj39ZZ WplfmQkEZCx6ybDzMZf/6MrkdPt/oDwlb20+fKglrKzgrKzsHQQFL3bQt0mHOSbOZwKN Zw0ZWEy1bwMA26UAxeXhhIeznwzSPicX/d2tTd5jhGCoW3TiDIqh97EbZtF6/6SMp9mT LQgA== X-Gm-Message-State: ALoCoQm2r9XPSpSDTvVhQ15LCu69gWXTWmDYEZA7+qW4lkAqif1WoUWc8Y7uR3SBV+g7oS/fTHmb X-Received: by 10.236.227.165 with SMTP id d35mr687109yhq.51.1379078376120; Fri, 13 Sep 2013 06:19:36 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.28.10 with SMTP id x10ls1216827qeg.20.gmail; Fri, 13 Sep 2013 06:19:35 -0700 (PDT) X-Received: by 10.58.73.202 with SMTP id n10mr12068043vev.7.1379078375890; Fri, 13 Sep 2013 06:19:35 -0700 (PDT) Received: from mail-vb0-f53.google.com (mail-vb0-f53.google.com [209.85.212.53]) by mx.google.com with ESMTPS id dt10si3120674vdb.21.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:19:35 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.53 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.53; Received: by mail-vb0-f53.google.com with SMTP id i3so886357vbh.40 for ; Fri, 13 Sep 2013 06:19:35 -0700 (PDT) X-Received: by 10.220.74.69 with SMTP id t5mr12051121vcj.18.1379078375801; Fri, 13 Sep 2013 06:19:35 -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 u4csp80272vcz; Fri, 13 Sep 2013 06:19:35 -0700 (PDT) X-Received: by 10.66.194.13 with SMTP id hs13mr8890096pac.163.1379078374890; Fri, 13 Sep 2013 06:19:34 -0700 (PDT) Received: from mail-pd0-f182.google.com (mail-pd0-f182.google.com [209.85.192.182]) by mx.google.com with ESMTPS id to1si11237704pab.80.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:19:34 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.182 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.182; Received: by mail-pd0-f182.google.com with SMTP id r10so1245463pdi.27 for ; Fri, 13 Sep 2013 06:19:34 -0700 (PDT) X-Received: by 10.68.172.164 with SMTP id bd4mr13375307pbc.153.1379078374489; Fri, 13 Sep 2013 06:19:34 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id m4sm9232997pbg.38.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:19:33 -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 , Benjamin Herrenschmidt Subject: [PATCH 140/228] cpufreq: pmac32: use cpufreq_generic_init() routine Date: Fri, 13 Sep 2013 18:31:26 +0530 Message-Id: <6c271510b5635b33d09b34211ca6e2265932f45c.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.212.53 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: Benjamin Herrenschmidt Signed-off-by: Viresh Kumar --- drivers/cpufreq/pmac32-cpufreq.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/cpufreq/pmac32-cpufreq.c b/drivers/cpufreq/pmac32-cpufreq.c index 672b7f4..6eac1e2 100644 --- a/drivers/cpufreq/pmac32-cpufreq.c +++ b/drivers/cpufreq/pmac32-cpufreq.c @@ -392,12 +392,7 @@ static int pmac_cpufreq_target( struct cpufreq_policy *policy, static int pmac_cpufreq_cpu_init(struct cpufreq_policy *policy) { - if (policy->cpu != 0) - return -ENODEV; - - policy->cpuinfo.transition_latency = transition_latency; - - return cpufreq_table_validate_and_show(policy, pmac_cpu_freqs); + return cpufreq_generic_init(policy, pmac_cpu_freqs, transition_latency); } static u32 read_gpio(struct device_node *np)