diff options
| author | Fabian Frederick <fabf@skynet.be> | 2015-03-16 15:20:28 -0400 |
|---|---|---|
| committer | Brian Norris <computersforpeace@gmail.com> | 2015-05-07 02:44:07 -0400 |
| commit | 666104436543d171b8b1a7213fd1d8bbef1361d5 (patch) | |
| tree | 68da1b2b81618118fd057587578aeadbd1d6e68a /drivers/mtd/maps | |
| parent | f5cd2ae1e4ad23bc6527b4a667d3f27534730cc5 (diff) | |
mtd: constify of_device_id array
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/maps')
| -rw-r--r-- | drivers/mtd/maps/physmap_of.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c index ff26e979b1a1..774b32fd29e6 100644 --- a/drivers/mtd/maps/physmap_of.c +++ b/drivers/mtd/maps/physmap_of.c | |||
| @@ -147,7 +147,7 @@ static void of_free_probes(const char * const *probes) | |||
| 147 | kfree(probes); | 147 | kfree(probes); |
| 148 | } | 148 | } |
| 149 | 149 | ||
| 150 | static struct of_device_id of_flash_match[]; | 150 | static const struct of_device_id of_flash_match[]; |
| 151 | static int of_flash_probe(struct platform_device *dev) | 151 | static int of_flash_probe(struct platform_device *dev) |
| 152 | { | 152 | { |
| 153 | const char * const *part_probe_types; | 153 | const char * const *part_probe_types; |
| @@ -327,7 +327,7 @@ err_flash_remove: | |||
| 327 | return err; | 327 | return err; |
| 328 | } | 328 | } |
| 329 | 329 | ||
| 330 | static struct of_device_id of_flash_match[] = { | 330 | static const struct of_device_id of_flash_match[] = { |
| 331 | { | 331 | { |
| 332 | .compatible = "cfi-flash", | 332 | .compatible = "cfi-flash", |
| 333 | .data = (void *)"cfi_probe", | 333 | .data = (void *)"cfi_probe", |
