Subject: Re: [PATCH] [MTD] ofpart: Partitions at same address cannot have the same name v3

From: Benjamin Krill <[email-masked]>
Date: Mon, 27 Apr 2009 09:09:32 +0200

>--- 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 <[email-masked]>