From 3213e674ca42c95b84ed040eab3d5722f41412ae Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Sun, 22 Mar 2015 00:45:35 +0100 Subject: [PATCH] ARM: cygnus: fix const declaration bcm_cygnus_dt_compat MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The const declaration for char* is actually duplicated, however the array of strings is currently not constant. However, typically the dt_compat array is declared as const char *const. Follow that convention and also add the __initconst macro for constant initialization data. Signed-off-by: Stefan Agner Acked-by: Scott Branden Reviewed-by: Ray Jui Tested-by: Ray Jui Acked-by: Uwe Kleine-König Signed-off-by: Florian Fainelli --- arch/arm/mach-bcm/bcm_cygnus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-bcm/bcm_cygnus.c b/arch/arm/mach-bcm/bcm_cygnus.c index 30dc58be51b8..7ae894c7849b 100644 --- a/arch/arm/mach-bcm/bcm_cygnus.c +++ b/arch/arm/mach-bcm/bcm_cygnus.c @@ -13,7 +13,7 @@ #include -static const char const *bcm_cygnus_dt_compat[] = { +static const char * const bcm_cygnus_dt_compat[] __initconst = { "brcm,cygnus", NULL, }; -- 2.39.5