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: 3462011 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 35CBF9F374 for ; Thu, 9 Jan 2014 16:00:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 06CFC2016C for ; Thu, 9 Jan 2014 16:00:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E199F2013D for ; Thu, 9 Jan 2014 16:00:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754180AbaAIQAu (ORCPT ); Thu, 9 Jan 2014 11:00:50 -0500 Received: from mail-pd0-f169.google.com ([209.85.192.169]:58748 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751541AbaAIQAt (ORCPT ); Thu, 9 Jan 2014 11:00:49 -0500 Received: by mail-pd0-f169.google.com with SMTP id v10so3334201pde.28 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 Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, t.figa@samsung.com, kgene.kim@samsung.com, shawn.guo@linaro.org, viresh.kumar@linaro.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> 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=-6.8 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=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); }