All of lore.kernel.org
 help / color / mirror / Atom feed
From: Josh Boyer <jwboyer@linux.vnet.ibm.com>
To: linuxppc-dev@ozlabs.org
Cc: david@gibson.dropbear.id.au
Subject: [patch 2/4] Make partitions optional in physmap_of
Date: Fri, 14 Sep 2007 13:54:12 -0500	[thread overview]
Message-ID: <20070914185648.970788000@linux.vnet.ibm.com> (raw)
In-Reply-To: <20070914185410.387074000@linux.vnet.ibm.com>>

The latest physmap_of driver has a small error where it will fail the probe
with:

physmap-flash: probe of fff00000.small-flas failed with error -2

if there are no partition subnodes in the device tree and the old style binding
is not used.  Since partition definitions are optional, the probe should still
succeed.

Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>

---
 drivers/mtd/maps/physmap_of.c |    2 ++
 1 file changed, 2 insertions(+)

--- linux-2.6.orig/drivers/mtd/maps/physmap_of.c
+++ linux-2.6/drivers/mtd/maps/physmap_of.c
@@ -142,6 +142,8 @@ static int __devinit process_partitions(
 		}
 	} else {
 		nr_parts = parse_obsolete_partitions(dev, info, dp);
+		if (nr_parts == -ENOENT)
+			nr_parts = 0;
 	}
 
 	if (nr_parts < 0)

-- 

  parent reply	other threads:[~2007-09-14 19:01 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-14 18:54 [patch 0/4] Small 4xx updates for 2.6.24 Josh Boyer
2007-09-14 18:54 ` [patch 1/4] cuimage for Bamboo board Josh Boyer
2007-09-15  2:19   ` David Gibson
2007-09-15 14:26     ` Josh Boyer
2007-09-14 18:54 ` Josh Boyer [this message]
2007-09-15  2:21   ` [patch 2/4] Make partitions optional in physmap_of David Gibson
2007-09-14 18:54 ` [patch 3/4] 4xx: Convert Walnut flash mappings to new binding Josh Boyer
2007-09-15  2:22   ` David Gibson
2007-09-15 14:25     ` Josh Boyer
2007-09-15  3:23   ` Stefan Roese
2007-09-15 14:26     ` Josh Boyer
2007-09-15 15:09       ` Wolfgang Denk
2007-09-15 17:35         ` Josh Boyer
2007-09-15 19:20           ` Segher Boessenkool
2007-09-17  2:03             ` David Gibson
2007-09-17  2:02         ` David Gibson
2007-09-14 18:54 ` [patch 4/4] 4xx: Convert Seqouia " Josh Boyer
2007-09-15  2:23   ` David Gibson
2007-09-15  3:32     ` Stefan Roese

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=20070914185648.970788000@linux.vnet.ibm.com \
    --to=jwboyer@linux.vnet.ibm.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.