ARM: imx: fix imx31-dt.c time-related warning
authorStephen Warren <swarren@nvidia.com>
Wed, 30 Jan 2013 03:56:17 +0000 (20:56 -0700)
committerOlof Johansson <olof@lixom.net>
Fri, 1 Feb 2013 03:55:31 +0000 (19:55 -0800)
commit80debae58435423def63632273139ee5fcb99c69
tree414dd325ecd811d770ec38a2664ddf05da76d567
parentdb1c8172eeca18246b3362d86a4567f4049d07d2
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>
arch/arm/mach-imx/imx31-dt.c