Skip to content

Commit

Permalink
[POWERPC] Make partitions optional in physmap_of
Browse files Browse the repository at this point in the history
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>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
  • Loading branch information
Josh Boyer authored and Josh Boyer committed Sep 20, 2007
1 parent 658e817 commit 8d9ae99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/mtd/maps/physmap_of.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ static int __devinit process_partitions(struct physmap_flash_info *info,
}
} else {
nr_parts = parse_obsolete_partitions(dev, info, dp);
if (nr_parts == -ENOENT)
nr_parts = 0;
}

if (nr_parts < 0)
Expand Down

0 comments on commit 8d9ae99

Please sign in to comment.