Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 374743
b: refs/heads/master
c: f39cf6c
h: refs/heads/master
i:
  374741: 17b0d7c
  374739: 2cf889c
  374735: e44bfe3
v: v3
  • Loading branch information
Artem Bityutskiy authored and David Woodhouse committed Apr 5, 2013
1 parent c0b25cf commit d6e0d8d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 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: d50dcb1d0e1f8ebe11db1719aad5753cd1b4c4f8
refs/heads/master: f39cf6c7d472349a9907955ef213db1f26618ba0
17 changes: 7 additions & 10 deletions trunk/drivers/mtd/maps/physmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,21 +87,18 @@ static void physmap_set_vpp(struct map_info *map, int state)
spin_unlock_irqrestore(&info->vpp_lock, flags);
}

static const char *rom_probe_types[] = {
"cfi_probe",
"jedec_probe",
"qinfo_probe",
"map_rom",
NULL };
static const char *part_probe_types[] = { "cmdlinepart", "RedBoot", "afs",
NULL };
static const char * const rom_probe_types[] = {
"cfi_probe", "jedec_probe", "qinfo_probe", "map_rom", NULL };

static const char * const part_probe_types[] = {
"cmdlinepart", "RedBoot", "afs", NULL };

static int physmap_flash_probe(struct platform_device *dev)
{
struct physmap_flash_data *physmap_data;
struct physmap_flash_info *info;
const char **probe_type;
const char **part_types;
const char * const *probe_type;
const char * const *part_types;
int err = 0;
int i;
int devices_found = 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/mtd/physmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct physmap_flash_data {
unsigned int pfow_base;
char *probe_type;
struct mtd_partition *parts;
const char **part_probe_types;
const char * const *part_probe_types;
};

#endif /* __LINUX_MTD_PHYSMAP__ */

0 comments on commit d6e0d8d

Please sign in to comment.