From patchwork Sun Feb 6 13:17:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: thomas.abraham@linaro.org X-Patchwork-Id: 79 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:39:46 -0000 Delivered-To: patches@linaro.org Received: by 10.147.124.5 with SMTP id b5cs7738yan; Sun, 6 Feb 2011 05:19:08 -0800 (PST) Received: by 10.142.14.8 with SMTP id 8mr14006266wfn.83.1296998347573; Sun, 06 Feb 2011 05:19:07 -0800 (PST) Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by mx.google.com with ESMTP id d34si6446692wfj.75.2011.02.06.05.19.07; Sun, 06 Feb 2011 05:19:07 -0800 (PST) Received-SPF: neutral (google.com: 203.254.224.24 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) client-ip=203.254.224.24; Authentication-Results: mx.google.com; spf=neutral (google.com: 203.254.224.24 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) smtp.mail=thomas.abraham@linaro.org Received: from epmmp2 (mailout1.samsung.com [203.254.224.24]) by mailout1.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LG7000ZR6BU5I70@mailout1.samsung.com> for patches@linaro.org; Sun, 06 Feb 2011 22:19:06 +0900 (KST) Received: from localhost.localdomain ([107.108.73.37]) by mmp2.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0LG700IIC6BL0I@mmp2.samsung.com> for patches@linaro.org; Sun, 06 Feb 2011 22:19:07 +0900 (KST) Date: Sun, 06 Feb 2011 18:47:29 +0530 From: Thomas Abraham Subject: [PATCH 3/4] ARM: DT: Add support for probing platform bus on SMDKV310 machine In-reply-to: <1296998250-21856-1-git-send-email-thomas.abraham@linaro.org> To: devicetree-discuss@lists.ozlabs.org Cc: linaro-dev@lists.linaro.org, patches@linaro.org, kgene.kim@samsung.com Message-id: <1296998250-21856-4-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.6.6.rc2 Content-transfer-encoding: 7BIT References: <1296998250-21856-1-git-send-email-thomas.abraham@linaro.org> This patch adds support for probing devices from device tree for Samsung's SMDKV310 machine. Signed-off-by: Thomas Abraham --- arch/arm/mach-s5pv310/mach-smdkv310-dt.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-s5pv310/mach-smdkv310-dt.c b/arch/arm/mach-s5pv310/mach-smdkv310-dt.c index 367fdb1..f81d88a 100644 --- a/arch/arm/mach-s5pv310/mach-smdkv310-dt.c +++ b/arch/arm/mach-s5pv310/mach-smdkv310-dt.c @@ -79,9 +79,15 @@ static void __init smdkv310_map_io(void) s3c24xx_init_uarts(smdkv310_uartcfgs, ARRAY_SIZE(smdkv310_uartcfgs)); } +static struct of_device_id smdkv310_dt_match_table[] __initdata = { + { .compatible = "simple-bus", }, + {}, +}; + static void __init smdkv310_machine_init(void) { platform_add_devices(smdkv310_devices, ARRAY_SIZE(smdkv310_devices)); + of_platform_bus_probe(NULL, smdkv310_dt_match_table, NULL); } static char const *smdkv310_dt_compat[] = {