From patchwork Wed Jun 25 07:58:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gaku Inami X-Patchwork-Id: 4417101 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1FF229F26E for ; Wed, 25 Jun 2014 08:03:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 42FAF2037B for ; Wed, 25 Jun 2014 08:03:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3FFE12017D for ; Wed, 25 Jun 2014 08:03:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754748AbaFYIDA (ORCPT ); Wed, 25 Jun 2014 04:03:00 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:7894 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753302AbaFYIC6 (ORCPT ); Wed, 25 Jun 2014 04:02:58 -0400 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie1.idc.renesas.com with ESMTP; 25 Jun 2014 17:02:56 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id E183E45880; Wed, 25 Jun 2014 17:02:56 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id D064C280A7; Wed, 25 Jun 2014 17:02:56 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id 99F49280A0; Wed, 25 Jun 2014 17:02:56 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac2.idc.renesas.com with ESMTP id TAY30421; Wed, 25 Jun 2014 17:02:56 +0900 X-IronPort-AV: E=Sophos;i="5.01,544,1399993200"; d="scan'208";a="164056830" Received: from mail-hk1lp0123.outbound.protection.outlook.com (HELO APAC01-HK1-obe.outbound.protection.outlook.com) ([207.46.51.123]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 25 Jun 2014 17:02:55 +0900 Received: from [10.164.207.238] (211.11.155.149) by SINPR06MB379.apcprd06.prod.outlook.com (10.141.116.26) with Microsoft SMTP Server (TLS) id 15.0.969.15; Wed, 25 Jun 2014 08:02:53 +0000 Message-ID: <53AA8130.2020304@bp.renesas.com> Date: Wed, 25 Jun 2014 16:58:40 +0900 From: Gaku Inami User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Linux-sh list CC: Magnus Damm , Viresh Kumar , Simon Horman , "linux-arm-kernel@lists.infradead.org >> \"linux-arm-kernel@lists.infradead.org\"" Subject: [PATCH] ARM: shmobile: Remove opps table check for cpufreq X-Originating-IP: [211.11.155.149] X-ClientProxiedBy: HKXPR04CA006.apcprd04.prod.outlook.com (10.242.96.36) To SINPR06MB379.apcprd06.prod.outlook.com (10.141.116.26) X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-Forefront-PRVS: 02530BD3AA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(6049001)(6009001)(199002)(189002)(19580395003)(19580405001)(87266999)(54356999)(74502001)(65816999)(83322001)(86362001)(74662001)(31966008)(85852003)(95666004)(105586002)(101416001)(83506001)(76482001)(64126003)(4396001)(20776003)(80022001)(64706001)(66066001)(47776003)(65956001)(107046001)(81342001)(65806001)(77096002)(92566001)(85306003)(87976001)(92726001)(83072002)(81542001)(102836001)(79102001)(33656002)(59896001)(42186005)(99396002)(50986999)(21056001)(77982001)(50466002)(46102001)(106356001)(23736002); DIR:OUT; SFP:; SCL:1; SRVR:SINPR06MB379; H:[10.164.207.238]; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; X-OriginatorOrg: bp.renesas.com Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 This patch is based on feedback from Viresh Kumar. Since cpufreq-cpu0 driver has already check opp table, there is no need to same check in mach-shmobile. Signed-off-by: Gaku Inami Acked-by: Viresh Kumar --- Based on : renesas-devel-v3.16-rc2-20140623 arch/arm/mach-shmobile/cpufreq.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/arch/arm/mach-shmobile/cpufreq.c b/arch/arm/mach-shmobile/cpufreq.c index e2c868f..8a24b2b 100644 --- a/arch/arm/mach-shmobile/cpufreq.c +++ b/arch/arm/mach-shmobile/cpufreq.c @@ -8,24 +8,10 @@ * for more details. */ -#include -#include #include int __init shmobile_cpufreq_init(void) { - struct device_node *np; - - np = of_cpu_device_node_get(0); - if (np == NULL) { - pr_err("failed to find cpu0 node\n"); - return 0; - } - - if (of_get_property(np, "operating-points", NULL)) - platform_device_register_simple("cpufreq-cpu0", -1, NULL, 0); - - of_node_put(np); - + platform_device_register_simple("cpufreq-cpu0", -1, NULL, 0); return 0; }