aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2013-01-29 22:56:17 -0500
committerOlof Johansson <olof@lixom.net>2013-01-31 22:55:31 -0500
commit80debae58435423def63632273139ee5fcb99c69 (patch)
tree414dd325ecd811d770ec38a2664ddf05da76d567 /arch/arm/mach-imx
parentdb1c8172eeca18246b3362d86a4567f4049d07d2 (diff)
ARM: imx: fix imx31-dt.c time-related warning
Commit 6bb27d7 "ARM: delete struct sys_timer" caused the following: arch/arm/mach-imx/imx31-dt.c:56:2: warning: initialization from incompatible pointer type [enabled by default] arch/arm/mach-imx/imx31-dt.c:56:2: warning: (near initialization for ‘__mach_desc_IMX31_DT.init_time’) [enabled by default] This is because mx31_clocks_init_dt() returns int, whereas the .init_time field prototype expects a function returning void. Implement a wrapper so that the prototypes match. Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r--arch/arm/mach-imx/imx31-dt.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/imx31-dt.c b/arch/arm/mach-imx/imx31-dt.c
index f9a690960097..b5c04eece780 100644
--- a/arch/arm/mach-imx/imx31-dt.c
+++ b/arch/arm/mach-imx/imx31-dt.c
@@ -43,12 +43,17 @@ static const char *imx31_dt_board_compat[] __initdata = {
43 NULL 43 NULL
44}; 44};
45 45
46static void __init imx31_dt_timer_init(void)
47{
48 mx31_clocks_init_dt();
49}
50
46DT_MACHINE_START(IMX31_DT, "Freescale i.MX31 (Device Tree Support)") 51DT_MACHINE_START(IMX31_DT, "Freescale i.MX31 (Device Tree Support)")
47 .map_io = mx31_map_io, 52 .map_io = mx31_map_io,
48 .init_early = imx31_init_early, 53 .init_early = imx31_init_early,
49 .init_irq = mx31_init_irq, 54 .init_irq = mx31_init_irq,
50 .handle_irq = imx31_handle_irq, 55 .handle_irq = imx31_handle_irq,
51 .init_time = mx31_clocks_init_dt, 56 .init_time = imx31_dt_timer_init,
52 .init_machine = imx31_dt_init, 57 .init_machine = imx31_dt_init,
53 .dt_compat = imx31_dt_board_compat, 58 .dt_compat = imx31_dt_board_compat,
54 .restart = mxc_restart, 59 .restart = mxc_restart,