arm/imx: remove mx27_setup_weimcs() from mx27.h
commit25971426532f04e9da5b2bca841bd5247138067f
authorShawn Guo <shawn.guo@linaro.org>
Mon, 17 Oct 2011 06:15:08 +0000 (17 14:15 +0800)
committerSascha Hauer <s.hauer@pengutronix.de>
Mon, 17 Oct 2011 19:41:03 +0000 (17 21:41 +0200)
tree6e34fe491f3d2e10dcabc4be46ee1c8a49b62e3b
parentf2d9661bc99dc816cb0f01760d4ebfe2b4d840e4
arm/imx: remove mx27_setup_weimcs() from mx27.h

The helper function mx27_setup_weimcs() references IOMEM() and
IMX_IO_P2V() but without required header mach/hardware.h included
in mx27.h.  This will break the build of those mx27 file with no
direct inclusion of mach/hardware.h, or when indirect inclusion to
mach/hardware.h breaks.

For example, when the inclusion of mach/hardware.h gets removed from
mach/gpio.h, we will see the following compile error.

  CC      arch/arm/mach-imx/pm-imx27.o
In file included from arch/arm/mach-imx/pm-imx27.c:14:0:
arch/arm/plat-mxc/include/mach/mx27.h: In function ‘mx27_setup_weimcs’:
arch/arm/plat-mxc/include/mach/mx27.h:138:2: error: implicit declaration of function ‘IOMEM’
arch/arm/plat-mxc/include/mach/mx27.h:138:2: error: implicit declaration of function ‘IMX_IO_P2V’

This patch removes mx27_setup_weimcs() from mx27.h and makes it local
to mach-pcm038.c, which is the only user for this helper.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-imx/mach-pcm038.c
arch/arm/plat-mxc/include/mach/mx27.h