diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-05-07 10:49:13 +0200 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-05-21 01:35:30 +0200 |
commit | 17754ad693a5d1e906219cc528f859c02482cca7 (patch) | |
tree | b7036a625ce671673881847a91cf01dfd99ca615 /drivers/mtd/nand/pxa3xx_nand.c | |
parent | mtd: st_spi_fsm: Make of_device_id array const (diff) | |
download | linux-17754ad693a5d1e906219cc528f859c02482cca7.tar.xz linux-17754ad693a5d1e906219cc528f859c02482cca7.zip |
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@samsung.com>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Acked-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand/pxa3xx_nand.c')
-rw-r--r-- | drivers/mtd/nand/pxa3xx_nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c index 7588fe2c127f..940e6c7c6524 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, |