Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758915Ab2FULK4 (ORCPT ); Thu, 21 Jun 2012 07:10:56 -0400 Received: from mail-vc0-f174.google.com ([209.85.220.174]:34792 "EHLO mail-vc0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753677Ab2FULKy convert rfc822-to-8bit (ORCPT ); Thu, 21 Jun 2012 07:10:54 -0400 MIME-Version: 1.0 In-Reply-To: References: <1339678763-14509-1-git-send-email-aletes.xgr@gmail.com> Date: Thu, 21 Jun 2012 08:10:53 -0300 Message-ID: Subject: Re: [PATCH] SPI: at25: Parse dt settings From: Alexandre Pereira da Silva 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 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1057 Lines: 26 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 { > ? ? ? ?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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/