From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 24 Jun 2014 20:31:55 +0200 From: Ioan Nicu Subject: Re: [PATCH 5/6] OF: Utility helper functions for dynamic nodes Message-ID: <20140624183155.GA12606@heimdall> References: <20140623183343.GA10389@heimdall> <78ACBAF6-A73E-4272-8D3A-258C4B10858C@konsulko.com> <53A8848A.3000803@roeck-us.net> <53A982ED.3070709@nsn.com> <53A99CB5.70704@nsn.com> <20140624182247.GA12169@heimdall> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140624182247.GA12169@heimdall> To: ext Pantelis Antoniou Cc: Alexander Sverdlin , ext Rob Herring , Guenter Roeck , Grant Likely , Stephen Warren , Matt Porter , Koen Kooi , Greg Kroah-Hartman , Alison Chaiken , Dinh Nguyen , Jan Lubbe , Michael Stickel , Dirk Behme , Alan Tull , Sascha Hauer , Michael Bohan , Michal Simek , Matt Ranostay , Joel Becker , "devicetree@vger.kernel.org" , Wolfram Sang , "linux-i2c@vger.kernel.org" , Mark Brown , "linux-spi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Pete Popov , Dan Malek , Georgi Vlaev List-ID: Hi, On Tue, Jun 24, 2014 at 08:23:08PM +0200, Ioan Nicu wrote: > Hi Pantelis, > > > Those are not the only users, and drivers/ is not the only place to look > for them. For example in sound/ppc/tumbler.c: > > [...] > paddr = of_get_property(tas_node, "i2c-address", NULL); > if (paddr == NULL) > paddr = of_get_property(tas_node, "reg", NULL); > [...] > > This code should also use of_find_property() IMHO. > One correction. This example is wrong for our discussion, so ignore it. But I was showing it just to highlight that there may be other wrong uses which don't fit the pattern you specified. I guess that the only way to catch them all is using your patch which issues a warning. Regards, Ioan.