From patchwork Thu Jun 26 15:02:03 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: 4428081 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 5CF30BEEAA for ; Thu, 26 Jun 2014 15:00:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 664A4201B9 for ; Thu, 26 Jun 2014 15:00:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5639B201B4 for ; Thu, 26 Jun 2014 15:00:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753575AbaFZPAE (ORCPT ); Thu, 26 Jun 2014 11:00:04 -0400 Received: from mail-yh0-f44.google.com ([209.85.213.44]:57345 "EHLO mail-yh0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752137AbaFZPAD (ORCPT ); Thu, 26 Jun 2014 11:00:03 -0400 Received: by mail-yh0-f44.google.com with SMTP id f10so2179180yha.17 for ; Thu, 26 Jun 2014 08:00: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:mime-version :content-type:content-transfer-encoding; bh=Pxg6MOCWd9vSxfP+c3gBLGZGBRRxouBJwON8JUjWkY0=; b=Olh2rgygXrPjqWDtYaxvJPNhZNeCfJeVBdRPbEQ0O9dEnobEFC7uMt1UDPEnEaCkty vZA2UVi+vgCCMC0sXvuZPzIN5aRsiYiQrLmkKzwZwsm2WJ5QY7BkiK8S0IId3H/JHhi0 OGxzAX6AexdZGufs6ntDimRDHq5yK9DWVAzn0REb9+xR7BYhyWHvispJ0SzawGhrZHeG TBAOs+nYSf7qsrCyjRJoTL++TGT34Pigz+5nEEVuyWX/hBZuF5hNhukCnTyiexT8wye1 fJ+DUFLnCgTq7brGSB3mzcxw1+lTCCq1jGWOdGr9yXJ+zMAr4lBVUBzcR+KFi7YjWefq MfIg== X-Gm-Message-State: ALoCoQl8lwXHAUHBsAR5Ii6O7PCT6IxWU9KF06M80rUC6YqZy1+9suYkvSwGy0d/VmD2EgKdQtDi X-Received: by 10.236.78.33 with SMTP id f21mr22393546yhe.113.1403794802367; Thu, 26 Jun 2014 08:00:02 -0700 (PDT) Received: from localhost (host18.190-30-94.telecom.net.ar. [190.30.94.18]) by mx.google.com with ESMTPSA id b67sm10340827yhc.16.2014.06.26.07.59.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jun 2014 08:00:00 -0700 (PDT) From: =?UTF-8?q?Guido=20Mart=C3=ADnez?= To: Tony Lindgren Cc: pekon@ti.com, =?UTF-8?q?Ezequiel=20Garc=C3=ADa?= , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?UTF-8?q?Guido=20Mart=C3=ADnez?= Subject: [PATCH] arm: mach-omap2: gpmc: ignore non-available nodes Date: Thu, 26 Jun 2014 12:02:03 -0300 Message-Id: <1403794923-19511-1-git-send-email-guido@vanguardiasur.com.ar> X-Mailer: git-send-email 2.0.0 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 Tested-by: Pekon Gupta --- 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;