From patchwork Fri Jun 10 20:48:40 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 871292 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p5BAjpfl017065 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 11 Jun 2011 10:46:12 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QVLhH-0007vG-KH; Sat, 11 Jun 2011 10:45:43 +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 1QVLhH-0001lZ-6q; Sat, 11 Jun 2011 10:45:43 +0000 Received: from mail-iy0-f177.google.com ([209.85.210.177]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QVLhD-0001lG-Qp for linux-arm-kernel@lists.infradead.org; Sat, 11 Jun 2011 10:45:40 +0000 Received: by iyb39 with SMTP id 39so3598834iyb.36 for ; Sat, 11 Jun 2011 03:45:36 -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=cyJtDukDXoVjZa//AwDb7GCSYu7WNPRYGRHSIQF6zMs=; b=tRDR/ovCB7RV/pTUNQMdjsdMDnisbrrcMZti+Bih66a1ygF6pJ9mip6glnARM8EwaK Dkqo+Ws0/CrqsIKbg9x++lWS5Df0ka+mQr3gk3VlSx+t/elxZVMnporveu+5pgbGumE6 wPL5+F4JYeKtkSO+l+3RB6UMgkWsJqXUGeBt8= 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=DCcBZb5KddEWF8S9vBcBDiJA0CspOQ3zgcbS3Emi0UnWqF+MpMzyMNKmKUB+gVP+fl aHSbk19AJk7zmaHbgU9OvD6NbW3ahWtuE+IGPbqGOU5y9xugAdV5WYrpPbziht1+dWia /LtG+AjZdm/slMfyibhBY1XVIxLsaKbvYnx6M= Received: by 10.42.167.200 with SMTP id t8mr3226817icy.270.1307738946508; Fri, 10 Jun 2011 13:49:06 -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.05 (version=SSLv3 cipher=OTHER); Fri, 10 Jun 2011 13:49:05 -0700 (PDT) From: Rob Herring To: devicetree-discuss@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 1/4] dt: check root nodes for match on of_platform_populate Date: Fri, 10 Jun 2011 15:48:40 -0500 Message-Id: <1307738923-7564-2-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_064540_146602_72D8411E X-CRM114-Status: GOOD ( 10.06 ) 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.210.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 , 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 (demeter2.kernel.org [140.211.167.43]); Sat, 11 Jun 2011 10:46:12 +0000 (UTC) From: Rob Herring of_platform_populate will create platform devices for the top-level nodes if they have a compatible string, but regardless of a match or not. Cc: Grant Likely Signed-off-by: Rob Herring --- drivers/of/platform.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/of/platform.c b/drivers/of/platform.c index 9b785be..dc56a77 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c @@ -318,6 +318,8 @@ int of_platform_populate(struct device_node *root, return -EINVAL; for_each_child_of_node(root, child) { + if (!of_match_node(matches, child)) + continue; rc = of_platform_bus_create(child, matches, parent, true); if (rc) break;