From patchwork Thu Jan 9 15:59:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Abraham X-Patchwork-Id: 3462071 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C66959F374 for ; Thu, 9 Jan 2014 16:04:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 375BA2016C for ; Thu, 9 Jan 2014 16:04:26 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (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 8F0652013D for ; Thu, 9 Jan 2014 16:04:21 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W1I43-0003yv-DM; Thu, 09 Jan 2014 16:02:37 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W1I3Q-0001fD-8K; Thu, 09 Jan 2014 16:01:56 +0000 Received: from mail-pd0-x230.google.com ([2607:f8b0:400e:c02::230]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W1I2g-0001Yl-3v for linux-arm-kernel@lists.infradead.org; Thu, 09 Jan 2014 16:01:11 +0000 Received: by mail-pd0-f176.google.com with SMTP id w10so3324534pde.21 for ; Thu, 09 Jan 2014 08:00:48 -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=N3+z7UNhvzuLsnF7xk1WjEE1ElXUCxz2jWYEwJM5m7M=; b=f3Rnb59OFWT/kAycDprEJbft05uMvifibEjzs+8HPpzygXawNDyjJgf0IunyklJvmb leQjCpEmIG6y3/8yDaJI/RqK3QTN83d+w6B/dDsfRQaCDhlplT5DU+lY81lC6hd2Y/gi 8cZg/8sWl5YzFXpF6ChPKevbCxgYGkNW52WlQ4vOStPEVJlAEmf1W4gB0Gtn2/O8zRmj x7ime1AWhICCbmgjJCDIgaDKRxk9WcKsIbqfDmi5rjRv+PGx/mSSKePsaDx7dKsQW2rb TzYbTPDMyXG3Daax0MLJLbvZL4cXjebVWuiGupNjHn8IYkZPe72VQigQ4ze2TM2MaP+r wEuA== X-Received: by 10.66.149.73 with SMTP id ty9mr4666018pab.36.1389283248804; Thu, 09 Jan 2014 08:00:48 -0800 (PST) Received: from user-ubuntu.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id wp8sm10882717pbc.26.2014.01.09.08.00.44 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 Jan 2014 08:00:47 -0800 (PST) From: Thomas Abraham To: cpufreq@vger.kernel.org Subject: [PATCH 5/6] arm: exynos4-dt: statically add platform device for cpufreq-cpu0 platform driver Date: Thu, 9 Jan 2014 21:29:24 +0530 Message-Id: <1389283165-17708-6-git-send-email-thomas.ab@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1389283165-17708-1-git-send-email-thomas.ab@samsung.com> References: <1389283165-17708-1-git-send-email-thomas.ab@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140109_110110_299863_7B91B88E X-CRM114-Status: GOOD ( 10.87 ) X-Spam-Score: -2.0 (--) Cc: devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, viresh.kumar@linaro.org, t.figa@samsung.com, kgene.kim@samsung.com, shawn.guo@linaro.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 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=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, 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 In order to use the cpufreq-cpu0 driver on Exynos4 based platforms, statically add the platform device for cpufreq-cpu0 platform driver. Signed-off-by: Thomas Abraham Reviewed-by: Lukasz Majewski --- arch/arm/mach-exynos/mach-exynos4-dt.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos/mach-exynos4-dt.c b/arch/arm/mach-exynos/mach-exynos4-dt.c index d3e54b7..8b8ad41 100644 --- a/arch/arm/mach-exynos/mach-exynos4-dt.c +++ b/arch/arm/mach-exynos/mach-exynos4-dt.c @@ -19,11 +19,17 @@ #include "common.h" +static struct platform_device cpufreq_device = { + .name = "cpufreq-cpu0", + .id = -1, +}; + static void __init exynos4_dt_machine_init(void) { exynos_cpuidle_init(); exynos_cpufreq_init(); + platform_device_register(&cpufreq_device); of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); }