Patchwork ARM: imx27/dt: make dt_compat entry const

login
register
mail settings
Submitter Uwe Kleine-König
Date June 8, 2012, 10:04 a.m.
Message ID <1339149890-18973-1-git-send-email-u.kleine-koenig@pengutronix.de>
Download mbox | patch
Permalink /patch/163751/
State New
Headers show

Comments

Uwe Kleine-König - June 8, 2012, 10:04 a.m.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 arch/arm/mach-imx/imx27-dt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Sascha Hauer - June 15, 2012, 7:14 a.m.
On Fri, Jun 08, 2012 at 12:04:50PM +0200, Uwe Kleine-König wrote:
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
>  arch/arm/mach-imx/imx27-dt.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

> 
> diff --git a/arch/arm/mach-imx/imx27-dt.c b/arch/arm/mach-imx/imx27-dt.c
> index ed38d03..779e539 100644
> --- a/arch/arm/mach-imx/imx27-dt.c
> +++ b/arch/arm/mach-imx/imx27-dt.c
> @@ -74,7 +74,7 @@ static struct sys_timer imx27_timer = {
>  	.init = imx27_timer_init,
>  };
>  
> -static const char *imx27_dt_board_compat[] __initdata = {
> +static const char * const imx27_dt_board_compat[] __initconst = {
>  	"fsl,imx27",
>  	NULL
>  };
> -- 
> 1.7.10
> 
>

Patch

diff --git a/arch/arm/mach-imx/imx27-dt.c b/arch/arm/mach-imx/imx27-dt.c
index ed38d03..779e539 100644
--- a/arch/arm/mach-imx/imx27-dt.c
+++ b/arch/arm/mach-imx/imx27-dt.c
@@ -74,7 +74,7 @@  static struct sys_timer imx27_timer = {
 	.init = imx27_timer_init,
 };
 
-static const char *imx27_dt_board_compat[] __initdata = {
+static const char * const imx27_dt_board_compat[] __initconst = {
 	"fsl,imx27",
 	NULL
 };