Commit 3213e674 authored by Stefan Agner's avatar Stefan Agner Committed by Florian Fainelli

ARM: cygnus: fix const declaration bcm_cygnus_dt_compat

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: default avatarStefan Agner <stefan@agner.ch>
Acked-by: default avatarScott Branden <sbranden@broadcom.com>
Reviewed-by: default avatarRay Jui <rjui@broadcom.com>
Tested-by: default avatarRay Jui <rjui@broadcom.com>
Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
parent c517d838
......@@ -13,7 +13,7 @@
#include <asm/mach/arch.h>
static const char const *bcm_cygnus_dt_compat[] = {
static const char * const bcm_cygnus_dt_compat[] __initconst = {
"brcm,cygnus",
NULL,
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment