From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from rune.pobox.com ([208.210.124.79]) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1J3Ll0-00086g-Od for linux-mtd@lists.infradead.org; Sat, 15 Dec 2007 01:24:05 +0000 Date: Fri, 14 Dec 2007 19:23:21 -0600 From: Nathan Lynch To: Josh Boyer Subject: Re: [PATCH v3 4/4] Freescale enhanced Local Bus Controller FCM NAND support. Message-ID: <20071215012321.GJ28696@localdomain> References: <20071214221736.GA21231@loki.buserror.net> <20071214190819.29cbe0bb@vader.jdub.homelinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071214190819.29cbe0bb@vader.jdub.homelinux.org> Cc: Scott Wood , linuxppc-dev@ozlabs.org, dwmw2@infradead.org, linux-mtd@lists.infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Josh Boyer wrote: > On Fri, 14 Dec 2007 16:17:36 -0600 > Scott Wood wrote: > > > + child = NULL; > > + while ((child = of_get_next_child(ofdev->node, child))) > > + if (of_device_is_compatible(child, "fsl,elbc-fcm-nand")) > > + fsl_elbc_chip_probe(ctrl, child); > > Don't you need some of_node_put calls here? The of_... iterators do of_node_put() for you as long as you don't break out of the loop early.