From patchwork Fri Jul 5 15:26:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 2824268 Return-Path: X-Original-To: patchwork-linux-sh@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 177DBBF4A1 for ; Fri, 5 Jul 2013 15:26:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3376520171 for ; Fri, 5 Jul 2013 15:26:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E1D7C20179 for ; Fri, 5 Jul 2013 15:26:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757364Ab3GEP0u (ORCPT ); Fri, 5 Jul 2013 11:26:50 -0400 Received: from moutng.kundenserver.de ([212.227.17.9]:58885 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757398Ab3GEP0s (ORCPT ); Fri, 5 Jul 2013 11:26:48 -0400 Received: from axis700.grange (dslb-178-001-146-173.pools.arcor-ip.net [178.1.146.173]) by mrelayeu.kundenserver.de (node=mrbap4) with ESMTP (Nemesis) id 0LZwBp-1UVvxa0Wbt-00mLZq; Fri, 05 Jul 2013 17:26:47 +0200 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id C800840BB4; Fri, 5 Jul 2013 17:26:46 +0200 (CEST) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1Uv7uI-0005Cd-O6; Fri, 05 Jul 2013 17:26:46 +0200 From: Guennadi Liakhovetski To: linux-sh@vger.kernel.org Cc: Magnus Damm , Simon Horman , Guennadi Liakhovetski Subject: [PATCH v2 1/4] ARM: shmobile: r8a73a4: move cpufreq-cpu0 device registration into a function Date: Fri, 5 Jul 2013 17:26:43 +0200 Message-Id: <1373038006-19973-2-git-send-email-g.liakhovetski@gmx.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1373038006-19973-1-git-send-email-g.liakhovetski@gmx.de> References: <1373038006-19973-1-git-send-email-g.liakhovetski@gmx.de> X-Provags-ID: V02:K0:ujJ+dsLrF3ffnnCQjyc9t/c510+faRZnGh3bojvRw8Z EmWxQ2I9NwCcrBViabNl3ceGewmPssr8h18bfhuCQcg0ptSZ4d iH0ze32POIorfdmn6NvI650t2egqeH/62fU/IFw7GEEJ4Qxg+A drxdwrHBQvfwOBN6taJr87DPzMHB05jq/2LtGjDHPFtoOjFIQ+ 5WdE2dV9gonou/YLMDAo2pCRK5OfXBx2GI0r/N5ih0zDJmXfRM /0lV2rxvFgSZViXkQIWKAhlrgtJ6gDntge6FHrKlwbsTnYxC2A Gz6lXENkUlDOq8+hfAkdZYjEgv/Y/u119Pb2LiRWzv2ovlzDHF oncM85bMTDCnGzoPuozo64YIwuin0CwIXkZJWm6MmcoCHZX6Vi ihx04IJAkPQZA== Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 r8a73a4 currently uses the cpufreq-cpu0 driver for its CPUFreq implementation. However, this can change in the future when CA7 cores are also activated. To free r8a73a4 boards from CPUFreq implementation details move cpufreq-cpu0 device registration into an SoC-specific function. Signed-off-by: Guennadi Liakhovetski --- v2: new patch in this version arch/arm/mach-shmobile/include/mach/r8a73a4.h | 4 ++++ arch/arm/mach-shmobile/setup-r8a73a4.c | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-shmobile/include/mach/r8a73a4.h b/arch/arm/mach-shmobile/include/mach/r8a73a4.h index 12a4ee9..aa94dcc 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a73a4.h +++ b/arch/arm/mach-shmobile/include/mach/r8a73a4.h @@ -21,4 +21,8 @@ void r8a73a4_clock_init(void); void r8a73a4_pinmux_init(void); void r8a73a4_init_delay(void); +#ifdef CONFIG_USE_OF +void r8a73a4_add_cpufreq_device_dt(void); +#endif + #endif /* __ASM_R8A73A4_H__ */ diff --git a/arch/arm/mach-shmobile/setup-r8a73a4.c b/arch/arm/mach-shmobile/setup-r8a73a4.c index bdd1f5a..75a4977 100644 --- a/arch/arm/mach-shmobile/setup-r8a73a4.c +++ b/arch/arm/mach-shmobile/setup-r8a73a4.c @@ -330,9 +330,14 @@ void __init r8a73a4_init_delay(void) } #ifdef CONFIG_USE_OF -void __init r8a73a4_add_standard_devices_dt(void) +void __init r8a73a4_add_cpufreq_device_dt(void) { platform_device_register_simple("cpufreq-cpu0", -1, NULL, 0); +} + +void __init r8a73a4_add_standard_devices_dt(void) +{ + r8a73a4_add_cpufreq_device_dt(); of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); }