Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142324
b: refs/heads/master
c: 4b08e14
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Krill authored and David Woodhouse committed Mar 24, 2009
1 parent 618f4c2 commit 975e295
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c0e6616ae69774f42fda7a8cc5dc699aff311b40
refs/heads/master: 4b08e149c0e02e97ec49c2a31d14a0d3a02f8074
7 changes: 7 additions & 0 deletions trunk/drivers/mtd/ofpart.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ int __devinit of_mtd_parse_partitions(struct device *dev,
const u32 *reg;
int len;

/* check if this is a partition node */
partname = of_get_property(pp, "name", &len);
if (strcmp(partname, "partition") != 0) {
nr_parts--;
continue;
}

reg = of_get_property(pp, "reg", &len);
if (!reg || (len != 2 * sizeof(u32))) {
of_node_put(pp);
Expand Down

0 comments on commit 975e295

Please sign in to comment.