mtd: orion_nand: Make of_device_id array const

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue Jun 10 23:59:07 PDT 2014


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=cb3346ac244652f6b70ab7312ec9ecde6ec4dbc6
Commit:     cb3346ac244652f6b70ab7312ec9ecde6ec4dbc6
Parent:     17754ad693a5d1e906219cc528f859c02482cca7
Author:     Jingoo Han <jg1.han at samsung.com>
AuthorDate: Wed May 7 17:50:23 2014 +0900
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue May 20 16:35:30 2014 -0700

    mtd: orion_nand: Make of_device_id array const
    
    Make of_device_id array const, because all OF functions
    handle it as const.
    
    Signed-off-by: Jingoo Han <jg1.han at samsung.com>
    Acked-by: Andrew Lunn <andrew at lunn.ch>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/nand/orion_nand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/orion_nand.c b/drivers/mtd/nand/orion_nand.c
index dd7fe81..471b4df 100644
--- a/drivers/mtd/nand/orion_nand.c
+++ b/drivers/mtd/nand/orion_nand.c
@@ -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", },
 	{},
 };



More information about the linux-mtd-cvs mailing list