From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.ruggedcom.com ([204.50.190.93]) by casper.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1MbKuc-0002qP-4H for linux-mtd@lists.infradead.org; Wed, 12 Aug 2009 20:59:15 +0000 Message-ID: <4A832D11.3020802@ruggedcom.com> Date: Wed, 12 Aug 2009 16:58:57 -0400 From: Michael Barkowski MIME-Version: 1.0 To: avorontsov@ru.mvista.com Subject: Re: [PATCH 2/6] mtd: m25p80: Convert to device table matching References: <20090731003957.GA23982@oksana.dev.rtsoft.ru> <20090731004100.GB8371@oksana.dev.rtsoft.ru> <4A832A03.6020507@ruggedcom.com> <20090812205800.GA27074@oksana.dev.rtsoft.ru> In-Reply-To: <20090812205800.GA27074@oksana.dev.rtsoft.ru> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Ben Dooks , David Brownell , Benjamin Herrenschmidt , linux-kernel@vger.kernel.org, lm-sensors@lm-sensors.org, Grant Likely , linuxppc-dev@ozlabs.org, linux-mtd@lists.infradead.org, Jean Delvare , Andrew Morton , David Woodhouse List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Anton Vorontsov wrote: > On Wed, Aug 12, 2009 at 04:45:55PM -0400, Michael Barkowski wrote: >> Hello Anton, >> >> Is m25p_probe now valid with dev.platform_data == NULL, for of platforms? >> >> Then shouldn't you have the following change as well, near the end of >> the function? >> >> - } else if (data->nr_parts) >> + } else if (data && data->nr_parts) >> dev_warn(&spi->dev, "ignoring %d default partitions on %s\n", >> data->nr_parts, data->name); >> >> Or am I misunderstanding something? > > Yeah, you missed this patch: > http://patchwork.kernel.org/patch/38179/ > > > Thanks, > Beautiful - thanks - sorry to interrupt -- Michael Barkowski 905-482-4577