Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207817
b: refs/heads/master
c: 78ef7fa
h: refs/heads/master
i:
  207815: 88a7521
v: v3
  • Loading branch information
Barry Song authored and David Woodhouse committed Aug 8, 2010
1 parent b78bb1b commit 366bd59
Show file tree
Hide file tree
Showing 3 changed files with 8 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: 73ee5760253dc8893502e19a9cb118d25dab21ec
refs/heads/master: 78ef7fab0eb0a5b159842bac89aed74bb0aa7bfe
8 changes: 6 additions & 2 deletions trunk/drivers/mtd/maps/physmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,12 @@ static int physmap_flash_probe(struct platform_device *dev)
simple_map_init(&info->map[i]);

probe_type = rom_probe_types;
for (; info->mtd[i] == NULL && *probe_type != NULL; probe_type++)
info->mtd[i] = do_map_probe(*probe_type, &info->map[i]);
if (physmap_data->probe_type == NULL) {
for (; info->mtd[i] == NULL && *probe_type != NULL; probe_type++)
info->mtd[i] = do_map_probe(*probe_type, &info->map[i]);
} else
info->mtd[i] = do_map_probe(physmap_data->probe_type, &info->map[i]);

if (info->mtd[i] == NULL) {
dev_err(&dev->dev, "map_probe failed\n");
err = -ENXIO;
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/mtd/physmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ struct physmap_flash_data {
void (*set_vpp)(struct map_info *, int);
unsigned int nr_parts;
unsigned int pfow_base;
char *probe_type;
struct mtd_partition *parts;
};

Expand Down

0 comments on commit 366bd59

Please sign in to comment.