From patchwork Fri Jun 10 20:48:43 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 871502 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5BCBNqB004931 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 11 Jun 2011 12:11:44 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QVN1m-0004G0-Ms; Sat, 11 Jun 2011 12:10:58 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QVN1m-00061F-9F; Sat, 11 Jun 2011 12:10:58 +0000 Received: from mail-iw0-f177.google.com ([209.85.214.177]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QVN1i-00060w-A3 for linux-arm-kernel@lists.infradead.org; Sat, 11 Jun 2011 12:10:55 +0000 Received: by iwn36 with SMTP id 36so3617974iwn.36 for ; Sat, 11 Jun 2011 05:10:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=SiS2q5zvAh2ZtFlcAZDY1lcCP+v6C9PmiavKlMmeEK8=; b=aXLmre4/WSzcCtTMsX6DEFecBmR52KdTGAXttUjplQJ6Hy6iekr8kjU8Ld2zP2L+xA YddXshNIlZQt31BJ6W8oxqBSM34XT9fm7vGH9b7DjJOiBTuR46n1WasVo8QbjXKJBRR4 f+BHdhReiW1AOfPK8QChndm5kce0jEcNucVTA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=dwOy9i5PoWKBuosSqmwGTbD1ro0SdRdiL98QVOEjHp9OT7phQyZw/D+NOEvn1t1P/P aDzOh2hfYTTDuZukRz3WoeEwNIEv9g4+P7ejA2JP40BA1x2K28rkkeDHi9omTNjLHeQX 4GNgCy2vj7Qduul5X0VhvsMSTIRTBoBap/Jp8= Received: by 10.42.159.201 with SMTP id m9mr3086182icx.244.1307738950086; Fri, 10 Jun 2011 13:49:10 -0700 (PDT) Received: from rob-laptop.i.smooth-stone.com ([173.226.190.126]) by mx.google.com with ESMTPS id w8sm1487349ibh.1.2011.06.10.13.49.08 (version=SSLv3 cipher=OTHER); Fri, 10 Jun 2011 13:49:09 -0700 (PDT) From: Rob Herring To: devicetree-discuss@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 4/4] dt: add amba device creation to platform bus scan Date: Fri, 10 Jun 2011 15:48:43 -0500 Message-Id: <1307738923-7564-5-git-send-email-robherring2@gmail.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1307738923-7564-1-git-send-email-robherring2@gmail.com> References: <1307738923-7564-1-git-send-email-robherring2@gmail.com> X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110611_081054_621453_94744C27 X-CRM114-Status: GOOD ( 12.87 ) X-Spam-Score: 1.4 (+) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (1.4 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.214.177 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is freemail (robherring2[at]gmail.com) 2.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (robherring2[at]gmail.com) -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 RFC_ABUSE_POST Both abuse and postmaster missing on sender domain 0.0 T_TO_NO_BRKTS_FREEMAIL T_TO_NO_BRKTS_FREEMAIL Cc: Grant Likely , Jeremy Kerr , arnd@arndb.de, Rob Herring X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 11 Jun 2011 12:11:44 +0000 (UTC) From: Rob Herring Add support to the platform bus scanning to call custom device creation function for amba devices. Cc: Jeremy Kerr Cc: Grant Likely Cc: arnd@arndb.de Signed-off-by: Rob Herring --- drivers/of/platform.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/of/platform.c b/drivers/of/platform.c index 8d0f477..1712f22 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c @@ -21,6 +21,7 @@ #include #include #include +#include static int of_dev_node_match(struct device *dev, void *data) { @@ -234,6 +235,11 @@ static int of_platform_bus_create(struct device_node *bus, return 0; } + if (of_device_is_compatible(bus, "arm,amba-device")) { + of_amba_device_create(bus, parent); + return 0; + } + dev = of_platform_device_create(bus, NULL, parent); if (!dev || !of_match_node(matches, bus)) return 0;