From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cursor.subgra.de (cursor.subgra.de [78.46.252.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "cursor.subgra.de", Issuer "cursor.subgra.de" (not verified)) by ozlabs.org (Postfix) with ESMTPS id F371FDDDB2 for ; Mon, 27 Apr 2009 17:09:49 +1000 (EST) Date: Mon, 27 Apr 2009 09:09:32 +0200 From: Benjamin Krill To: Ricardo Ribalda Delgado Subject: Re: [PATCH] [MTD] ofpart: Partitions at same address cannot have the same name v3 Message-ID: <20090427070932.GK14906@codiert.org> References: <1240581715-25926-1-git-send-email-ricardo.ribalda@uam.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: <1240581715-25926-1-git-send-email-ricardo.ribalda@uam.es> Cc: Scott Wood , linuxppc-dev@ozlabs.org, David.Woodhouse@intel.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , >--- a/drivers/mtd/ofpart.c >+++ b/drivers/mtd/ofpart.c >@@ -48,7 +48,9 @@ int __devinit of_mtd_parse_partitions(struct device *dev, > > /* check if this is a partition node */ > partname = of_get_property(pp, "name", &len); >- if (strcmp(partname, "partition") != 0) { >+ if ((strcmp(partname, "partition") != 0) && >+ (of_device_is_compatible(pp, "partition") != 1)) >+ { > nr_parts--; > continue; > } If this is the way, how to go, you get my ack. Acked-by: Benjamin Krill