mirror of
https://github.com/torvalds/linux.git
synced 2024-11-06 03:51:48 +00:00
df79bc9c27
0-DAY kernel build testing backend reports the following. scripts/checkpatch.pl 0001-ARM-imx-add-support-code-for-IMX50-based-machines.patch # many are suggestions rather than must-fix ERROR: Use of const init definition must use __initconst #80: arch/arm/mach-imx/mach-imx50.c:26: +static const char *imx50_dt_board_compat[] __initdata = { While at it, fix the error globally for IMX platform. Reported-by: Fengguang Wu <fengguang.wu@intel.com> Acked-by: Greg Ungerer <gerg@uclinux.org> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
40 lines
976 B
C
40 lines
976 B
C
/*
|
|
* Copyright 2012-2013 Freescale Semiconductor, Inc.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
#include <linux/of_platform.h>
|
|
#include <linux/irqchip.h>
|
|
#include <asm/mach/arch.h>
|
|
#include <asm/hardware/cache-l2x0.h>
|
|
|
|
#include "common.h"
|
|
|
|
static void __init vf610_init_machine(void)
|
|
{
|
|
mxc_arch_reset_init_dt();
|
|
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
|
|
}
|
|
|
|
static void __init vf610_init_irq(void)
|
|
{
|
|
l2x0_of_init(0, ~0UL);
|
|
irqchip_init();
|
|
}
|
|
|
|
static const char *vf610_dt_compat[] __initconst = {
|
|
"fsl,vf610",
|
|
NULL,
|
|
};
|
|
|
|
DT_MACHINE_START(VYBRID_VF610, "Freescale Vybrid VF610 (Device Tree)")
|
|
.init_irq = vf610_init_irq,
|
|
.init_machine = vf610_init_machine,
|
|
.dt_compat = vf610_dt_compat,
|
|
.restart = mxc_restart,
|
|
MACHINE_END
|