mtd: nand: pxa3xx: 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=17754ad693a5d1e906219cc528f859c02482cca7
Commit:     17754ad693a5d1e906219cc528f859c02482cca7
Parent:     aeea6eb4c0c172bbb410fe1b8efac6831a01fa19
Author:     Jingoo Han <jg1.han at samsung.com>
AuthorDate: Wed May 7 17:49:13 2014 +0900
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue May 20 16:35:30 2014 -0700

    mtd: nand: pxa3xx: 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: Jason Cooper <jason at lakedaemon.net>
    Acked-by: Ezequiel Garcia <ezequiel.garcia at free-electrons.com>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/nand/pxa3xx_nand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c
index 7588fe2..940e6c7 100644
--- a/drivers/mtd/nand/pxa3xx_nand.c
+++ b/drivers/mtd/nand/pxa3xx_nand.c
@@ -337,7 +337,7 @@ static struct nand_ecclayout ecc_layout_4KB_bch8bit = {
 /* convert nano-seconds to nand flash controller clock cycles */
 #define ns2cycle(ns, clk)	(int)((ns) * (clk / 1000000) / 1000)
 
-static struct of_device_id pxa3xx_nand_dt_ids[] = {
+static const struct of_device_id pxa3xx_nand_dt_ids[] = {
 	{
 		.compatible = "marvell,pxa3xx-nand",
 		.data       = (void *)PXA3XX_NAND_VARIANT_PXA,



More information about the linux-mtd-cvs mailing list