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: 2889881 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2C6B1BFF05 for ; Fri, 13 Sep 2013 15:07:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6F58B2024C for ; Fri, 13 Sep 2013 15:07:20 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 93F3F200F3 for ; Fri, 13 Sep 2013 15:07:15 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKTTi-0007CU-Ne; Fri, 13 Sep 2013 13:32:07 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKTTZ-0000yh-GR; Fri, 13 Sep 2013 13:31:57 +0000 Received: from mail-pa0-f50.google.com ([209.85.220.50]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VKTHv-0007ck-Q1 for linux-arm-kernel@lists.infradead.org; Fri, 13 Sep 2013 13:19:57 +0000 Received: by mail-pa0-f50.google.com with SMTP id fb10so2515816pad.37 for ; Fri, 13 Sep 2013 06:19:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=OlwI39DAUuXV26u3KgsUmKmKFXPDt0qIwR3hf6oXIpQ=; b=TWLxq052oIZPqcvf7bpm+XX1t+PFqAwZL96gbEFFmQJvc2eranowvJR9O81mUoArj8 vYNCnnmih0jmLnw3BaHNUIAztrap/RDrNdBj51updAoTGqs6r5gclZlVr/9nLVZtFcKZ 9R+NyPMptL2LAwIKh4GMkIpdJQIivuKMD9/nq4KtLcQh2wh2f6eN82Q9ePFvE+oLT8b/ 2DfN71h7PVBDaegXLyqT1tr+/DB6Oq0FpgF8PPu8G2cF9pXxmIgVxqyLlJJ5xm5uZc/D A/XcVAXZyDrZPnVf+TL3avt+voeXSFcY/2nZnD9ilqrAGI6I3DOVrXJc1+6eLf1ZqUBA ijfw== X-Gm-Message-State: ALoCoQk9qv3Xc8KEQbPo2DRq+4MlN/jrg5iEalzKUth4gO3clhzteX6ecMhmN3bFa3GKH1Q59TFQ 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130913_091955_960356_7AE72A49 X-CRM114-Status: UNSURE ( 9.18 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Viresh Kumar , patches@linaro.org, linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, Benjamin Herrenschmidt , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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)