From: Thomas Abraham Subject: [PATCH v3 6/7] ARM: Exynos: switch to using generic cpufreq-cpu0 driver Date: Fri, 7 Feb 2014 21:25:47 +0530 Message-ID: <1391788548-13056-7-git-send-email-thomas.ab@samsung.com> References: <1391788548-13056-1-git-send-email-thomas.ab@samsung.com> Return-path: 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=ziV4agdqd1BQt4/kyy/JrD9iCyokAwVo8Dk/JQsCIDA=; b=jo+nbQWpT71KX1QuMuwBboE/b8xABS1lrhRw3PZDr8kb0RJrNjz50INCeEQ0bg5TWw Tez5AdJjuYz+3CLHkoYKh5ftYkxl4OecpsxxWrlxWSAiQngUbufLTzz3wACutNJ/FccJ dXlpVdjN08hJjTKp4uD6p2vyNF8rngaFr+TK4ekP1cBZdV6qgeBifFtnozLrUPrYe8/v sI4SZxN5y9Jx82+uxCuSZlJvssp1FN0pIipc7q7mVp+ssaoXaccwciO7GbP8tvKmGMRy kh8pMlWf3nslnZ7kkmhMGk4MRO/tW/nVEs5Mi9WR7fm5uOxJVgb/FsxVEZKYm1wPEloo d6bw== In-Reply-To: <1391788548-13056-1-git-send-email-thomas.ab@samsung.com> Sender: cpufreq-owner@vger.kernel.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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, heiko@sntech.de From: Thomas Abraham Remove the platform device instantiation for Exynos specific cpufreq driver and add the platform device for cpufreq-cpu0 driver. 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); } -- 1.7.10.4