Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 374746
b: refs/heads/master
c: cce2a02
h: refs/heads/master
v: v3
  • Loading branch information
Artem Bityutskiy authored and David Woodhouse committed Apr 5, 2013
1 parent 76ddcd0 commit e95b7c8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 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: 255e9fd4b10005fe95d4c1862d6428f7a857deb9
refs/heads/master: cce2a026b5778001002dcab0dadec100d8959846
16 changes: 9 additions & 7 deletions trunk/drivers/mtd/maps/physmap_of.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ static int of_flash_remove(struct platform_device *dev)
return 0;
}

static const char * const rom_probe_types[] = {
"cfi_probe", "jedec_probe", "map_rom" };

/* Helper function to handle probing of the obsolete "direct-mapped"
* compatible binding, which has an extra "probe-type" property
* describing the type of flash probe necessary. */
Expand All @@ -80,8 +83,6 @@ static struct mtd_info *obsolete_probe(struct platform_device *dev,
struct device_node *dp = dev->dev.of_node;
const char *of_probe;
struct mtd_info *mtd;
static const char *rom_probe_types[]
= { "cfi_probe", "jedec_probe", "map_rom"};
int i;

dev_warn(&dev->dev, "Device tree uses obsolete \"direct-mapped\" "
Expand Down Expand Up @@ -111,9 +112,10 @@ static struct mtd_info *obsolete_probe(struct platform_device *dev,
specifies the list of partition probers to use. If none is given then the
default is use. These take precedence over other device tree
information. */
static const char *part_probe_types_def[] = { "cmdlinepart", "RedBoot",
"ofpart", "ofoldpart", NULL };
static const char **of_get_probes(struct device_node *dp)
static const char * const part_probe_types_def[] = {
"cmdlinepart", "RedBoot", "ofpart", "ofoldpart", NULL };

static const char * const *of_get_probes(struct device_node *dp)
{
const char *cp;
int cplen;
Expand Down Expand Up @@ -142,7 +144,7 @@ static const char **of_get_probes(struct device_node *dp)
return res;
}

static void of_free_probes(const char **probes)
static void of_free_probes(const char * const *probes)
{
if (probes != part_probe_types_def)
kfree(probes);
Expand All @@ -151,7 +153,7 @@ static void of_free_probes(const char **probes)
static struct of_device_id of_flash_match[];
static int of_flash_probe(struct platform_device *dev)
{
const char **part_probe_types;
const char * const *part_probe_types;
const struct of_device_id *match;
struct device_node *dp = dev->dev.of_node;
struct resource res;
Expand Down

0 comments on commit e95b7c8

Please sign in to comment.