projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mtd: constify of_device_id array
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
mtd
/
maps
/
physmap_of.c
diff --git
a/drivers/mtd/maps/physmap_of.c
b/drivers/mtd/maps/physmap_of.c
index ff26e979b1a17c243e1525adfceed3886d479ba1..774b32fd29e673c10cf927cd159a5d50829d6e86 100644
(file)
--- 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)
kfree(probes);
}
kfree(probes);
}
-static struct of_device_id of_flash_match[];
+static
const
struct of_device_id of_flash_match[];
static int of_flash_probe(struct platform_device *dev)
{
const char * const *part_probe_types;
static int of_flash_probe(struct platform_device *dev)
{
const char * const *part_probe_types;
@@
-327,7
+327,7
@@
err_flash_remove:
return err;
}
return err;
}
-static struct of_device_id of_flash_match[] = {
+static
const
struct of_device_id of_flash_match[] = {
{
.compatible = "cfi-flash",
.data = (void *)"cfi_probe",
{
.compatible = "cfi-flash",
.data = (void *)"cfi_probe",