From patchwork Tue Jun 17 15:25:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Abraham X-Patchwork-Id: 4367511 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 18D70BEEAA for ; Tue, 17 Jun 2014 15:33:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 67D0B20204 for ; Tue, 17 Jun 2014 15:33:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9B5D8201FE for ; Tue, 17 Jun 2014 15:33:05 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WwvLG-0003NH-B7; Tue, 17 Jun 2014 15:30:34 +0000 Received: from mail-pd0-x231.google.com ([2607:f8b0:400e:c02::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WwvHw-0000J2-SP for linux-arm-kernel@lists.infradead.org; Tue, 17 Jun 2014 15:27:15 +0000 Received: by mail-pd0-f177.google.com with SMTP id y10so4225367pdj.22 for ; Tue, 17 Jun 2014 08:26:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=IhRMZau612THfh+nkHn4fnxmoESXNHWGibV3P966wFE=; b=0R/B9R9g5SDvAH47+NxxBRc4mgJx8Mpdtvicvf7V92LCLEFjbTUXE1e/tCmicXxYqj 1apJ2h28vpoy/hFXpdHS6dX3rx9nhpEVNNSDOHQEIoiMRL4Nq5/uohGhh86EMbmaCAG4 K8HpDOmloEYK75V63YtnaHNttbKanRzDLwmCsBJGjA/Pz3f/zeRC5MaJTpDyoEOLz76g XYj6mYQphVHRMQcmv5NTQUuaWnkt8y6GYyCn6ioIGqkMsukGdCdrZE6OXt3rAUSL6w5T 97E/EVi1xcFqITo9ncS/97wx5iMMHOIN4fWPMCRw/kuNHRQ/+4ymDj37YbwlXVdFmhX5 AbqA== X-Received: by 10.68.192.106 with SMTP id hf10mr33470781pbc.30.1403018807264; Tue, 17 Jun 2014 08:26:47 -0700 (PDT) Received: from user-ubuntu.sisodomain.com ([14.140.216.146]) by mx.google.com with ESMTPSA id qw8sm24570340pbb.27.2014.06.17.08.26.42 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Jun 2014 08:26:46 -0700 (PDT) From: Thomas Abraham To: cpufreq@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v6 5/6] ARM: Exynos: switch to using generic cpufreq driver for exynos4210/5250 Date: Tue, 17 Jun 2014 20:55:32 +0530 Message-Id: <1403018733-4187-7-git-send-email-thomas.ab@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1403018733-4187-1-git-send-email-thomas.ab@samsung.com> References: <1403018733-4187-1-git-send-email-thomas.ab@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140617_082708_976134_CC248230 X-CRM114-Status: GOOD ( 11.91 ) X-Spam-Score: -0.7 (/) Cc: l.majewski@samsung.com, kgene.kim@samsung.com, mturquette@linaro.org, heiko@sntech.de, viresh.kumar@linaro.org, t.figa@samsung.com, cw00.choi@samsung.com, linux-samsung-soc@vger.kernel.org, thomas.ab@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 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=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 From: Thomas Abraham Remove the platform device instantiation for Exynos4210/5250 cpufreq driver and add the platform device for generic cpufreq drivers. Cc: Kukjin Kim Signed-off-by: Thomas Abraham --- arch/arm/mach-exynos/exynos.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index f38cf7c..cfcfe02 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -181,7 +181,20 @@ void __init exynos_cpuidle_init(void) void __init exynos_cpufreq_init(void) { - platform_device_register_simple("exynos-cpufreq", -1, NULL, 0); + char *dev_name; + + if (of_machine_is_compatible("samsung,exynos5440")) + return; + if (of_machine_is_compatible("samsung,exynos5420")) + dev_name = "arm-bL-cpufreq-dt"; + else + if (of_machine_is_compatible("samsung,exynos4412") || + of_machine_is_compatible("samsung,exynos4212")) + dev_name = "exynos-cpufreq"; + else + dev_name = "cpufreq-cpu0"; + + platform_device_register_simple(dev_name, -1, NULL, 0); } void __iomem *sysram_base_addr;