From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Pereira da Silva Subject: Re: [PATCH] SPI: at25: Parse dt settings Date: Thu, 21 Jun 2012 08:10:53 -0300 Message-ID: References: <1339678763-14509-1-git-send-email-aletes.xgr@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: Sender: linux-doc-owner@vger.kernel.org To: Ivo Sieben Cc: Grant Likely , Rob Herring , Rob Landley , Greg Kroah-Hartman , Wolfram Sang , Chris Wright , devicetree-discuss@lists.ozlabs.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Roland Stigge List-Id: devicetree@vger.kernel.org On Thu, Jun 21, 2012 at 6:49 AM, Ivo Sieben = wrote: > One small remark: > In case of platform_data, the "if (!chip)" check has been removed and > is now only handled in the device tree initialization. > Maybe add this check to the platform initialization as well: > > } else { > =A0 =A0 =A0 =A0if (!spi->dev.platform_data) { > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0dev_dbg(&spi->dev, "no chip descriptio= n\n"); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0err =3D -ENODEV; > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0goto fail; > =A0 =A0 =A0 =A0} > =A0 =A0 =A0 =A0chip =3D =A0*(struct spi_eeprom *)spi->dev.platform_da= ta; > } Thanks for finding that out. I will fix that case. This patch was already merged to gregh/char-misc: http://git.kernel.org/?p=3Dlinux/kernel/git/gregkh/char-misc.git;a=3Dsh= ortlog;h=3Drefs/heads/char-misc-next I will implement a patch to fix this against the original one.