From patchwork Wed Jul 2 13:35:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Guido_Mart=C3=ADnez?= X-Patchwork-Id: 4465661 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7FD66BEEAA for ; Wed, 2 Jul 2014 13:33:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A5DFF202D1 for ; Wed, 2 Jul 2014 13:33:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 43EC52014A for ; Wed, 2 Jul 2014 13:33:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753428AbaGBNdE (ORCPT ); Wed, 2 Jul 2014 09:33:04 -0400 Received: from mail-yh0-f49.google.com ([209.85.213.49]:36446 "EHLO mail-yh0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751297AbaGBNdD (ORCPT ); Wed, 2 Jul 2014 09:33:03 -0400 Received: by mail-yh0-f49.google.com with SMTP id f73so6834300yha.22 for ; Wed, 02 Jul 2014 06:33:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=9aFA012J/XrU9LcjJE8Nd/oBIcj40Ozyc4vIW+s4kyw=; b=koLRf0sRFHWaYbTF7KaShEBmnnB8iJcEmL8nevh7v1RadSWerdUFHeY/brWcHs2EKe KgClXUw+HLKFcMB/GA0Pi1qv3J7ZATSwGeQD+YShwVV1qjnDFAmgLrfksqksApArsqHu KqfYN1lrx3nKELhtIWCp3TsWBVTNJ8s7pWGGf0yVIaQUzMPvQIxSSetWAwEoprzzCjQ1 NPTMKnAwo8I+gnT8dQ5PwDHjtqmT/dVtpZpzwVo9PZE5z3AFH4wCkYqPonrEHOFUClvf MfbWudJYaYxppVVYsNDOuXzBVImE3ISjtG+QgkUXgQfBkFT310N1iE0OEnzLwpgdQuSB dKbA== X-Gm-Message-State: ALoCoQnaNxj2VEl7KjmA5sYiSyeuh9g2/ZGjyvo1y0kAAiqvb0AnHOLEz8yLGuFLk6ohoQaIMCwY X-Received: by 10.236.14.34 with SMTP id c22mr33727527yhc.97.1404307982102; Wed, 02 Jul 2014 06:33:02 -0700 (PDT) Received: from localhost (host18.190-30-94.telecom.net.ar. [190.30.94.18]) by mx.google.com with ESMTPSA id c29sm33990764yhb.7.2014.07.02.06.32.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Jul 2014 06:33:01 -0700 (PDT) From: =?UTF-8?q?Guido=20Mart=C3=ADnez?= To: Tony Lindgren Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, =?UTF-8?q?Ezequiel=20Garc=C3=ADa?= , pekon@ti.com, =?UTF-8?q?Guido=20Mart=C3=ADnez?= Subject: [PATCH v2] ARM: OMAP2+: Make GPMC skip disabled devices Date: Wed, 2 Jul 2014 10:35:18 -0300 Message-Id: <1404308118-14843-1-git-send-email-guido@vanguardiasur.com.ar> X-Mailer: git-send-email 2.0.0 In-Reply-To: <20980858CB6D3A4BAE95CA194937D5E73EAF8D44@DBDE04.ent.ti.com> References: <20980858CB6D3A4BAE95CA194937D5E73EAF8D44@DBDE04.ent.ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, 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 Currently, child nodes of the gpmc node are iterated and probed regardless of their 'status' property. This means adding 'status = "disabled";' has no effect. This patch changes the iteration to only probe nodes marked as available. Signed-off-by: Guido Martínez --- v2: Make patch title consistent with previous gpmc patches arch/arm/mach-omap2/gpmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 2c0c281..8bc1338 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c @@ -1615,7 +1615,7 @@ static int gpmc_probe_dt(struct platform_device *pdev) return ret; } - for_each_child_of_node(pdev->dev.of_node, child) { + for_each_available_child_of_node(pdev->dev.of_node, child) { if (!child->name) continue;