From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.ruggedcom.com ([204.50.190.93]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1MbKhw-00086w-Or for linux-mtd@lists.infradead.org; Wed, 12 Aug 2009 20:46:09 +0000 Message-ID: <4A832A03.6020507@ruggedcom.com> Date: Wed, 12 Aug 2009 16:45:55 -0400 From: Michael Barkowski MIME-Version: 1.0 To: Anton Vorontsov 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> In-Reply-To: <20090731004100.GB8371@oksana.dev.rtsoft.ru> Content-Type: text/plain; charset=ISO-8859-1 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: , 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? -- Michael Barkowski RuggedCom