diff mbox

[3/3] mtd: orion_nand: Make of_device_id array const

Message ID 022001cf69d1$624bcd50$26e367f0$%han@samsung.com
State Accepted
Commit cb3346ac244652f6b70ab7312ec9ecde6ec4dbc6
Headers show

Commit Message

Jingoo Han May 7, 2014, 8:50 a.m. UTC
Make of_device_id array const, because all OF functions
handle it as const.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/mtd/nand/orion_nand.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andrew Lunn May 7, 2014, 1:41 p.m. UTC | #1
On Wed, May 07, 2014 at 05:50:23PM +0900, Jingoo Han wrote:
> Make of_device_id array const, because all OF functions
> handle it as const.
> 
> Signed-off-by: Jingoo Han <jg1.han@samsung.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", },
>  	{},
>  };

Acked-by: Andrew Lunn <andrew@lunn.ch>

	  Andrew
diff mbox

Patch

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", },
 	{},
 };