[PATCH] ARM: imx: fix imx31-dt.c time-related warning

Shawn Guo shawn.guo at linaro.org
Wed Jan 30 01:03:32 EST 2013

On Tue, Jan 29, 2013 at 08:56:17PM -0700, Stephen Warren wrote:
> From: Stephen Warren <swarren at nvidia.com>
> 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 at intel.com>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>

Acked-by: Shawn Guo <shawn.guo at linaro.org>

> ---
> This patch is based on arm-soc's timer/cleanup branch, which contains
> the commit mentioned above.

I suppose that it should just be applied by arm-soc folks on that
branch, right?


More information about the linux-arm-kernel mailing list