From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eddie.linux-mips.org ([148.251.95.138] helo=cvs.linux-mips.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eEvkg-0004lD-QU for linux-mtd@lists.infradead.org; Wed, 15 Nov 2017 11:21:08 +0000 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23990395AbdKOLUflAKtl (ORCPT ); Wed, 15 Nov 2017 12:20:35 +0100 Date: Wed, 15 Nov 2017 12:20:28 +0100 Sender: Ladislav Michl From: Ladislav Michl To: Roger Quadros Cc: linux-mtd@lists.infradead.org, linux-omap@vger.kernel.org, Tony Lindgren , Peter Ujfalusi , Boris Brezillon , Kyungmin Park Subject: Re: [PATCH v4 14/16] mtd: onenand: omap2: Configure driver from DT Message-ID: <20171115112028.b7sbjkmwnu2uzpey@lenoch> References: <20171111211206.465pgorrjp3eyix6@lenoch> <20171111212742.m5t4rf5k47kikouu@lenoch> <27bb610f-b30a-cd4c-ccd5-06c0d9e205b7@ti.com> <20171115105357.3jkk5eyxst5limj3@lenoch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Nov 15, 2017 at 01:04:22PM +0200, Roger Quadros wrote: > On 15/11/17 12:53, Ladislav Michl wrote: [snip] > > of_property_read_u32 will fail then, so I do not think it is worth adding > > explicit test for NULL here. > > > > But the error message would be wrong in that case. > I'm trying to tackle the case where driver was probed using legacy methods > where device tree/node isn't present. But how could we ever get there in that case? platform_device_register is removed just one patch later. Of course we should add: depends on (OF && GPIOLIB) || COMPILE_TEST to the Kconfig