[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAAAP30G6zE5UmVMPPDGpwzHXG5zN3ZZfJ9u4W2TM1B5ccF50Lw@mail.gmail.com>
Date: Thu, 21 Jun 2012 08:10:53 -0300
From: Alexandre Pereira da Silva <aletes.xgr@...il.com>
To: Ivo Sieben <meltedpianoman@...il.com>
Cc: Grant Likely <grant.likely@...retlab.ca>,
Rob Herring <rob.herring@...xeda.com>,
Rob Landley <rob@...dley.net>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Wolfram Sang <w.sang@...gutronix.de>,
Chris Wright <chrisw@...s-sol.org>,
devicetree-discuss@...ts.ozlabs.org, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org, Roland Stigge <stigge@...com.de>
Subject: Re: [PATCH] SPI: at25: Parse dt settings
On Thu, Jun 21, 2012 at 6:49 AM, Ivo Sieben <meltedpianoman@...il.com> 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 {
> if (!spi->dev.platform_data) {
> dev_dbg(&spi->dev, "no chip description\n");
> err = -ENODEV;
> goto fail;
> }
> chip = *(struct spi_eeprom *)spi->dev.platform_data;
> }
Thanks for finding that out. I will fix that case.
This patch was already merged to gregh/char-misc:
http://git.kernel.org/?p=linux/kernel/git/gregkh/char-misc.git;a=shortlog;h=refs/heads/char-misc-next
I will implement a patch to fix this against the original one.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists