From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH v2 3/8] net: Add device tree support to LPC32xx Date: Mon, 2 Apr 2012 19:37:54 +0000 Message-ID: <201204021937.54567.arnd@arndb.de> References: <1333391587-26290-1-git-send-email-stigge@antcom.de> <1333391587-26290-4-git-send-email-stigge@antcom.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1333391587-26290-4-git-send-email-stigge@antcom.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Roland Stigge Cc: a.zummo@towertech.it, srinivas.bakki@nxp.com, linux-watchdog@vger.kernel.org, rtc-linux@googlegroups.com, gregkh@linuxfoundation.org, w.sang@pengutronix.de, kevin.wells@nxp.com, linux-kernel@vger.kernel.org, wim@iguana.be, arm@kernel.org, linux-i2c@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, jonsmirl@gmail.com List-Id: linux-i2c@vger.kernel.org On Monday 02 April 2012, Roland Stigge wrote: > > + if (pdev->dev.of_node && of_get_property(pdev->dev.of_node, > + "use-iram", NULL)) > + pldat->use_iram = true; > + else > + pldat->use_iram = false; > + One more thing I just noticed: this is equivalent to the much shorter pldat->use_iram = of_property_read_bool(pdev->dev.of_node, "use-iram"); Everything else looks good here. Arnd