diff options
Diffstat (limited to 'drivers/mtd/maps/physmap_of.c')
-rw-r--r-- | drivers/mtd/maps/physmap_of.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c index d7f19bc6de4a..cde8bf94338e 100644 --- a/drivers/mtd/maps/physmap_of.c +++ b/drivers/mtd/maps/physmap_of.c | |||
@@ -77,7 +77,7 @@ static int of_flash_remove(struct platform_device *dev) | |||
77 | /* Helper function to handle probing of the obsolete "direct-mapped" | 77 | /* Helper function to handle probing of the obsolete "direct-mapped" |
78 | * compatible binding, which has an extra "probe-type" property | 78 | * compatible binding, which has an extra "probe-type" property |
79 | * describing the type of flash probe necessary. */ | 79 | * describing the type of flash probe necessary. */ |
80 | static struct mtd_info * __devinit obsolete_probe(struct platform_device *dev, | 80 | static struct mtd_info *obsolete_probe(struct platform_device *dev, |
81 | struct map_info *map) | 81 | struct map_info *map) |
82 | { | 82 | { |
83 | struct device_node *dp = dev->dev.of_node; | 83 | struct device_node *dp = dev->dev.of_node; |
@@ -116,7 +116,7 @@ static struct mtd_info * __devinit obsolete_probe(struct platform_device *dev, | |||
116 | information. */ | 116 | information. */ |
117 | static const char *part_probe_types_def[] = { "cmdlinepart", "RedBoot", | 117 | static const char *part_probe_types_def[] = { "cmdlinepart", "RedBoot", |
118 | "ofpart", "ofoldpart", NULL }; | 118 | "ofpart", "ofoldpart", NULL }; |
119 | static const char ** __devinit of_get_probes(struct device_node *dp) | 119 | static const char **of_get_probes(struct device_node *dp) |
120 | { | 120 | { |
121 | const char *cp; | 121 | const char *cp; |
122 | int cplen; | 122 | int cplen; |
@@ -145,14 +145,14 @@ static const char ** __devinit of_get_probes(struct device_node *dp) | |||
145 | return res; | 145 | return res; |
146 | } | 146 | } |
147 | 147 | ||
148 | static void __devinit of_free_probes(const char **probes) | 148 | static void of_free_probes(const char **probes) |
149 | { | 149 | { |
150 | if (probes != part_probe_types_def) | 150 | if (probes != part_probe_types_def) |
151 | kfree(probes); | 151 | kfree(probes); |
152 | } | 152 | } |
153 | 153 | ||
154 | static struct of_device_id of_flash_match[]; | 154 | static struct of_device_id of_flash_match[]; |
155 | static int __devinit of_flash_probe(struct platform_device *dev) | 155 | static int of_flash_probe(struct platform_device *dev) |
156 | { | 156 | { |
157 | const char **part_probe_types; | 157 | const char **part_probe_types; |
158 | const struct of_device_id *match; | 158 | const struct of_device_id *match; |