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>
This commit is contained in:

committed by
Brian Norris

parent
f5cd2ae1e4
commit
6661044365
@@ -147,7 +147,7 @@ static void of_free_probes(const char * const *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;
|
||||
@@ -327,7 +327,7 @@ err_flash_remove:
|
||||
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",
|
||||
|
Reference in New Issue
Block a user