Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347219
b: refs/heads/master
c: e58a66d
h: refs/heads/master
i:
  347217: 126e6b8
  347215: d1c6daf
v: v3
  • Loading branch information
Anton Prins authored and Artem Bityutskiy committed Dec 10, 2012
1 parent 9e69a67 commit 99e8116
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6c810f90140a3274181c4093d5dd4c88c6fff0b4
refs/heads/master: e58a66d84bceba314b03e37ec0764b9b1b9227d0
6 changes: 4 additions & 2 deletions trunk/drivers/mtd/maps/physmap_of.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ static int of_flash_probe(struct platform_device *dev)
}

err = 0;
info->cmtd = NULL;
if (info->list_size == 1) {
info->cmtd = info->list[0].mtd;
} else if (info->list_size > 1) {
Expand All @@ -293,9 +294,10 @@ static int of_flash_probe(struct platform_device *dev)
*/
info->cmtd = mtd_concat_create(mtd_list, info->list_size,
dev_name(&dev->dev));
if (info->cmtd == NULL)
err = -ENXIO;
}
if (info->cmtd == NULL)
err = -ENXIO;

if (err)
goto err_out;

Expand Down

0 comments on commit 99e8116

Please sign in to comment.