aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Miao <eric.miao@linaro.org>2011-12-02 19:37:19 +0800
committerEric Miao <eric.miao@canonical.com>2011-12-05 18:59:27 +0800
commitcb4b204280bc86f9a000fa317828d6d41509807c (patch)
tree691f5e0782d697560b5d537951a000ee7b04bbd0
parente308b01d8119f05606d33d0dfb66dc32116a3aeb (diff)
downloadlinux-linaro-cb4b204280bc86f9a000fa317828d6d41509807c.tar.gz
SAUCE: fix building errors of arch/arm/plat-mxc/lluart.c
CC arch/arm/mach-imx/lluart.o In file included from linux-linaro/arch/arm/plat-mxc/include/mach/hardware.h:108:0, from linux-linaro/arch/arm/mach-imx/lluart.c:17: linux-linaro/arch/arm/plat-mxc/include/mach/mxc.h:214:33: warning: ‘enum mxc_cpu_pwr_mode’ declared inside parameter list [enabled by default] linux-linaro/arch/arm/plat-mxc/include/mach/mxc.h:214:33: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] linux-linaro/arch/arm/mach-imx/lluart.c: In function ‘imx_lluart_map_io’: linux-linaro/arch/arm/mach-imx/lluart.c:39:21: error: request for member ‘virtual’ in something not a structure or union linux-linaro/arch/arm/mach-imx/lluart.c:40:3: error: implicit declaration of function ‘ARRY_SIZE’ [-Werror=implicit-function-declaration] linux-linaro/arch/arm/mach-imx/lluart.c:40:3: warning: passing argument 1 of ‘iotable_init’ from incompatible pointer type [enabled by default] linux-linaro/arch/arm/include/asm/mach/map.h:35:13: note: expected ‘struct map_desc *’ but argument is of type ‘struct map_desc (*)[2]’ cc1: some warnings being treated as errors make[2]: *** [arch/arm/mach-imx/lluart.o] Error 1 make[1]: *** [arch/arm/mach-imx] Error 2 make: *** [sub-make] Error 2 Signed-off-by: Eric Miao <eric.miao@linaro.org>
-rw-r--r--arch/arm/mach-imx/lluart.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/lluart.c b/arch/arm/mach-imx/lluart.c
index 8962dfff901..b3bcc93f1dc 100644
--- a/arch/arm/mach-imx/lluart.c
+++ b/arch/arm/mach-imx/lluart.c
@@ -11,6 +11,7 @@
*/
#include <linux/init.h>
+#include <linux/kernel.h>
#include <asm/page.h>
#include <asm/sizes.h>
#include <asm/mach/map.h>
@@ -36,6 +37,6 @@ static struct map_desc imx_lluart_desc[] = {
void __init imx_lluart_map_io(void)
{
- if (imx_lluart_desc.virtual)
- iotable_init(&imx_lluart_desc, ARRY_SIZE(imx_lluart_desc));
+ if (ARRAY_SIZE(imx_lluart_desc))
+ iotable_init(&imx_lluart_desc, ARRAY_SIZE(imx_lluart_desc));
}