mtd: orion_nand: Make of_device_id array const
authorJingoo Han <jg1.han@samsung.com>
Wed, 7 May 2014 08:50:23 +0000 (17:50 +0900)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 20 May 2014 23:35:30 +0000 (16:35 -0700)
Make of_device_id array const, because all OF functions
handle it as const.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/orion_nand.c

index dd7fe817eafb319ebc9ae92b2cbbac8613b38add..471b4df3a5ac951fa1536fa284bee1672061f247 100644 (file)
@@ -214,7 +214,7 @@ static int orion_nand_remove(struct platform_device *pdev)
 }
 
 #ifdef CONFIG_OF
-static struct of_device_id orion_nand_of_match_table[] = {
+static const struct of_device_id orion_nand_of_match_table[] = {
        { .compatible = "marvell,orion-nand", },
        {},
 };