From patchwork Mon Jul 14 13:38:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Abraham X-Patchwork-Id: 4546401 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 477CDC0514 for ; Mon, 14 Jul 2014 13:41:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 700D12010F for ; Mon, 14 Jul 2014 13:41:43 +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 A2AD32012D for ; Mon, 14 Jul 2014 13:41:42 +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 1X6gUF-0003YN-6x; Mon, 14 Jul 2014 13:40:11 +0000 Received: from mail-pd0-x235.google.com ([2607:f8b0:400e:c02::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X6gTm-0001rc-KY for linux-arm-kernel@lists.infradead.org; Mon, 14 Jul 2014 13:39:43 +0000 Received: by mail-pd0-f181.google.com with SMTP id v10so5231977pde.40 for ; Mon, 14 Jul 2014 06:39:22 -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=RQ/Nol1qP6oPS+e3JRKaSoH8B74Sn3d0MVvBJmb4gtc=; b=iIiZD48K+CiJ19vZ+hlzvssytWrJ9Nj7zjani0hiFZSm8VmTfOTmEC/8XVvmzkkyhm r820s+h+JYlimjmWOMSTVZVWsveYqEKdMdY2lYtxnXPB30jn3A4HSNXp1bWtLxkQmNv5 o9UTodYMM2QHxXUDPfihcr6db6qTUIBwcNbRI0xPHao6MOmTV/kWSsT/UNRuqoEq8suJ dZCI0c2vSo0vFOHOjAVj0VwK0/MwfkYuakY8DHBH2YeVq8Lg700ZckifZvpqUIs9Xp+U pKVjBaIl1C2LUZP0CxZRSYn2F6qF5fY9k2Ljt81MjZgPhmqSph19KkZ7vx1+K9wqfvKY kt+w== X-Received: by 10.66.122.70 with SMTP id lq6mr16528567pab.51.1405345162149; Mon, 14 Jul 2014 06:39:22 -0700 (PDT) Received: from user-ubuntu.sisodomain.com ([14.140.216.146]) by mx.google.com with ESMTPSA id eh4sm10896474pbc.79.2014.07.14.06.39.17 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Jul 2014 06:39:21 -0700 (PDT) From: Thomas Abraham To: linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v7 5/6] ARM: Exynos: switch to using generic cpufreq driver for exynos4210/5250/5420 Date: Mon, 14 Jul 2014 19:08:37 +0530 Message-Id: <1405345118-4269-6-git-send-email-thomas.ab@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1405345118-4269-1-git-send-email-thomas.ab@samsung.com> References: <1405345118-4269-1-git-send-email-thomas.ab@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140714_063942_703413_AAD362ED X-CRM114-Status: GOOD ( 12.37 ) 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=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no 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 cpufreq driver and add the platform device for generic cpufreq drivers. Cc: Kukjin Kim Signed-off-by: Thomas Abraham Acked-by: Viresh Kumar Reviewed-by: Amit Daniel Kachhap Tested-by: Arjun K.V --- 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 2a43a17..5028b35 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -183,7 +183,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;