From: Benjamin Krill <ben@codiert•org>
To: Ricardo Ribalda Delgado <ricardo.ribalda@uam•es>
Cc: Scott Wood <scottwood@freescale•com>,
linuxppc-dev@ozlabs•org, David.Woodhouse@intel•com
Subject: Re: [PATCH] [MTD] ofpart: Partitions at same address cannot have the same name v3
Date: Mon, 27 Apr 2009 09:09:32 +0200 [thread overview]
Message-ID: <20090427070932.GK14906@codiert.org> (raw)
In-Reply-To: <1240581715-25926-1-git-send-email-ricardo.ribalda@uam.es>
>--- 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 <ben@codiert•org>
next prev parent reply other threads:[~2009-04-27 7:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-24 14:01 [PATCH] [MTD] ofpart: Partitions at same address cannot have the same name v3 Ricardo Ribalda Delgado
2009-04-27 7:09 ` Benjamin Krill [this message]
2009-04-29 0:45 ` Segher Boessenkool
2009-04-29 7:41 ` [PATCH] [MTD] ofpart: Partitions at same address cannot have thesame " Ricardo Ribalda Delgado
2009-04-29 13:56 ` Segher Boessenkool
2009-04-30 8:26 ` Ricardo Ribalda Delgado
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090427070932.GK14906@codiert.org \
--to=ben@codiert$(echo .)org \
--cc=David.Woodhouse@intel$(echo .)com \
--cc=linuxppc-dev@ozlabs$(echo .)org \
--cc=ricardo.ribalda@uam$(echo .)es \
--cc=scottwood@freescale$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox