提交 3213e674 编写于 作者: S Stefan Agner 提交者: 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: NStefan Agner <stefan@agner.ch>
Acked-by: NScott Branden <sbranden@broadcom.com>
Reviewed-by: NRay Jui <rjui@broadcom.com>
Tested-by: NRay Jui <rjui@broadcom.com>
Acked-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册