From patchwork Sat Jan 18 12:10:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Abraham X-Patchwork-Id: 3508221 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 42B26C02DD for ; Sat, 18 Jan 2014 12:12:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 649D12015E for ; Sat, 18 Jan 2014 12:12:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7482F2017E for ; Sat, 18 Jan 2014 12:12:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753895AbaARMMc (ORCPT ); Sat, 18 Jan 2014 07:12:32 -0500 Received: from mail-pb0-f54.google.com ([209.85.160.54]:45116 "EHLO mail-pb0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753897AbaARMMN (ORCPT ); Sat, 18 Jan 2014 07:12:13 -0500 Received: by mail-pb0-f54.google.com with SMTP id uo5so1552761pbc.27 for ; Sat, 18 Jan 2014 04:12:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WY0EUVtTiX6RbAVN4cSWH8Z1nO/vTet0/p3X1d5AZMc=; b=eKT8RdcEJgo+k8xhLdXFASaeTf8iTfPOc+MR0hXt3/5JvMmPyLOHj+nzJY43NE8Eby LWfFfxVBV6qUo1KHeRXUBP/ny72auqwpzNAhxJxVjV7mHcatZ08m5XOXQLDVofiY6fGG Vv0omVQu3ave1fdQKw9ezjB94FPucdrNjAGi3iAmhqo2QM1/obJY+DFL/sZzTKX4JwQ5 o59BYoxUcqksOpAawntRR54C3K3V6084KMgA1ct1cfFU7sUYkV0EcFDITnihC+au1ph3 j/CRyghZIPkprgc4LqT1gjhFMn4X0OD46mwPxU1QSCj5PZNnHIMXO9hDHr1EP6aNg64m GY6g== X-Received: by 10.68.191.73 with SMTP id gw9mr859914pbc.158.1390047133274; Sat, 18 Jan 2014 04:12:13 -0800 (PST) Received: from user-ubuntu.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id gn5sm29858876pbc.29.2014.01.18.04.12.08 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 Jan 2014 04:12:11 -0800 (PST) From: Thomas Abraham To: cpufreq@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org, mturquette@linaro.org, shawn.guo@linaro.org, kgene.kim@samsung.com, t.figa@samsung.com, l.majewski@samsung.com, viresh.kumar@linaro.org, thomas.ab@samsung.com Subject: [PATCH v2 6/7] ARM: Exynos: switch to using generic cpufreq-cpu0 driver Date: Sat, 18 Jan 2014 17:40:56 +0530 Message-Id: <1390047057-2239-7-git-send-email-thomas.ab@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1390047057-2239-1-git-send-email-thomas.ab@samsung.com> References: <1390047057-2239-1-git-send-email-thomas.ab@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 From: Thomas Abraham Remove the platform device instantiation for Exynos specific cpufreq driver and add the platform device for cpufreq-cpu0 driver. Cc: Kukjin Kim Signed-off-by: Thomas Abraham Reviewed-by: Lukasz Majewski --- arch/arm/mach-exynos/common.c | 5 ----- arch/arm/mach-exynos/common.h | 1 - arch/arm/mach-exynos/mach-exynos4-dt.c | 2 +- arch/arm/mach-exynos/mach-exynos5-dt.c | 2 +- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c index f18be40..72ae5d3 100644 --- a/arch/arm/mach-exynos/common.c +++ b/arch/arm/mach-exynos/common.c @@ -303,11 +303,6 @@ void __init exynos_cpuidle_init(void) platform_device_register(&exynos_cpuidle); } -void __init exynos_cpufreq_init(void) -{ - platform_device_register_simple("exynos-cpufreq", -1, NULL, 0); -} - void __init exynos_init_late(void) { if (of_machine_is_compatible("samsung,exynos5440")) diff --git a/arch/arm/mach-exynos/common.h b/arch/arm/mach-exynos/common.h index f76967b..0c31b34 100644 --- a/arch/arm/mach-exynos/common.h +++ b/arch/arm/mach-exynos/common.h @@ -22,7 +22,6 @@ void exynos_init_io(void); void exynos4_restart(enum reboot_mode mode, const char *cmd); void exynos5_restart(enum reboot_mode mode, const char *cmd); void exynos_cpuidle_init(void); -void exynos_cpufreq_init(void); void exynos_init_late(void); void exynos_firmware_init(void); diff --git a/arch/arm/mach-exynos/mach-exynos4-dt.c b/arch/arm/mach-exynos/mach-exynos4-dt.c index d3e54b7..9a25320 100644 --- a/arch/arm/mach-exynos/mach-exynos4-dt.c +++ b/arch/arm/mach-exynos/mach-exynos4-dt.c @@ -22,8 +22,8 @@ static void __init exynos4_dt_machine_init(void) { exynos_cpuidle_init(); - exynos_cpufreq_init(); + platform_device_register_simple("cpufreq-cpu0", -1, NULL, 0); of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); } diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c index 37ea261..9dc3710 100644 --- a/arch/arm/mach-exynos/mach-exynos5-dt.c +++ b/arch/arm/mach-exynos/mach-exynos5-dt.c @@ -44,8 +44,8 @@ static void __init exynos5_dt_machine_init(void) } exynos_cpuidle_init(); - exynos_cpufreq_init(); + platform_device_register_simple("cpufreq-cpu0", -1, NULL, 0); of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); }