summaryrefslogtreecommitdiff
path: root/drivers/mtd/devices
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2015-03-16 22:20:28 +0300
committerBrian Norris <computersforpeace@gmail.com>2015-05-07 09:44:07 +0300
commit666104436543d171b8b1a7213fd1d8bbef1361d5 (patch)
tree68da1b2b81618118fd057587578aeadbd1d6e68a /drivers/mtd/devices
parentf5cd2ae1e4ad23bc6527b4a667d3f27534730cc5 (diff)
downloadlinux-666104436543d171b8b1a7213fd1d8bbef1361d5.tar.xz
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/devices')
-rw-r--r--drivers/mtd/devices/docg3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c
index 866d31904475..be5fb2bd893c 100644
--- a/drivers/mtd/devices/docg3.c
+++ b/drivers/mtd/devices/docg3.c
@@ -2117,7 +2117,7 @@ static int docg3_release(struct platform_device *pdev)
}
#ifdef CONFIG_OF
-static struct of_device_id docg3_dt_ids[] = {
+static const struct of_device_id docg3_dt_ids[] = {
{ .compatible = "m-systems,diskonchip-g3" },
{}
};