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 16:50:49 +0800
commit6ff70b00c7a931e7459150355a06b3bb1fb63d48 (patch)
tree92fa7de426b9507076c060f615af8830263df609
parentfae15be44609d9835fdf842f382d480abcb58fb9 (diff)
downloadlinux-linaro-6ff70b00c7a931e7459150355a06b3bb1fb63d48.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));
}