On Mon, Mar 07, 2011 at 09:05:58PM +0800, Jason Liu wrote:
> Signed-off-by: Jason Liu <r64...@freescale.com>
> ---
[...]
> diff --git a/arch/arm/mach-mx5/board-dt.c b/arch/arm/mach-mx5/board-dt.c
> new file mode 100644
> index 0000000..90593f5
> --- /dev/null
> +++ b/arch/arm/mach-mx5/board-dt.c
> @@ -0,0 +1,64 @@
> +/*
> + * Copyright 2011 Freescale Semiconductor, Inc. All Rights Reserved.
> + *
> + * The code contained herein is licensed under the GNU General Public
> + * License. You may obtain a copy of the GNU General Public License
> + * Version 2 or later at the following locations:
> + *
> + * http://www.opensource.org/licenses/gpl-license.html
> + * http://www.gnu.org/copyleft/gpl.html
> + */
> +
> +#include <linux/err.h>
> +#include <linux/init.h>
> +#include <linux/platform_device.h>
> +#include <linux/dma-mapping.h>
> +#include <linux/of_platform.h>
> +#include <linux/of_fdt.h>
> +
> +#include <mach/common.h>
> +#include <mach/hardware.h>
> +#include <mach/imx-uart.h>
> +#include <mach/iomux-mx51.h>
> +
> +#include <asm/irq.h>
> +#include <asm/setup.h>
> +#include <asm/mach-types.h>
> +#include <asm/mach/arch.h>
> +#include <asm/mach/time.h>
> +
> +#include "devices.h"
> +
> +static struct of_device_id mx51_dt_match_table[] __initdata = {
> +     { .compatible = "simple-bus", },
> +     {}
> +};
> +
> +static void __init mx51_dt_board_init(void)
> +{
> +     of_platform_bus_probe(NULL, mx51_dt_match_table, NULL);
> +}
> +
> +static void __init mx51_dt_timer_init(void)
> +{
> +     mx51_clocks_init(32768, 24000000, 22579200, 0);
> +     mx5_clk_dt_init();
> +}
> +
> +static struct sys_timer mxc_timer = {
> +     .init = mx51_dt_timer_init,
> +};
> +
> +static const char * const mx51_dt_board_compat[] = {

The extra 'const' is introducing the warning below.

arch/arm/mach-mx5/board-dt.c:69: warning: initialization discards qualifiers 
from pointer target type

> +     "fsl,mx51-babbage",
> +     NULL
> +};
> +
> +DT_MACHINE_START(MX51_DT, "Freescale MX51 (Flattened Device Tree)")
> +     .boot_params  = PHYS_OFFSET + 0x100,
> +     .map_io       = mx51_map_io,
> +     .init_irq     = mx51_init_irq,
> +     .init_machine = mx51_dt_board_init,
> +     .dt_compat    = mx51_dt_board_compat,
> +     .timer        = &mxc_timer,
> +MACHINE_END

-- 
Regards,
Shawn


_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to